Categories
Raspberry Pi User Help

Wiring RPi with both a DHT 22 sensor and a fan set in slow cooling mode and getting data

I want to connect both a fan, set in slow cooling mode, and a DHT22 sensor to my RPi. My wirings: fan in cooling mode: power wire: connected to pin 17 ground wire: connected to pin 20 and it works fine. Now I want to add a DHT22 sensor, whose vendor sent me the connection […]

Categories
Raspberry Pi User Help

Wiring RPi with both a DHT 22 sensor and a fan set in slow cooling mode and getting data

I want to connect both a fan, set in slow cooling mode, and a DHT22 sensor to my RPi. My wirings: fan in cooling mode: power wire: connected to pin 17 ground wire: connected to pin 20 and it works fine. Now I want to add a DHT22 sensor, whose vendor sent me the connection […]

Categories
Raspberry Pi User Help

`xinput` command not being applied from ~/.config/lxsession/LXDE-pi/autostart

My ~/.config/lxsession/LXDE-pi/autostart file has the following contents: @lxpanel –profile LXDE-pi @pcmanfm –desktop –profile LXDE-pi @xscreensaver -no-splash @xrandr –output HDMI-1 –rotate inverted @xinput set-prop "HID 27c0:0818" "Coordinate Transformation Matrix" -1 0 1 0 -1 1 0 0 1 @xset s blank @chromium-browser https://calendar.google.com/ All of these steps are taking place, except the @xinput set-prop … command. […]

Categories
Raspberry Pi User Help

SSH not working with raspberry pi zero (non-W) when using Ethernet Gadget

I tried nearly every guide out there to set up Ethernet Gadget. Pinging raspberrypi.local doesn’t work: ssh: Could not resolve hostname raspberrypi.local: Name or service not known but it seems that pinging the ip assigned to the rpi0 work: ping 192.168.7.2 PING 192.168.7.2 (192.168.7.2) 56(84) bytes of data. 64 bytes from 192.168.7.2: icmp_seq=1 ttl=64 time=0.061 […]

Categories
Raspberry Pi User Help

Bluetooth connection between Android smartphone and Raspberry Pi fails

A Bluetooth connection with a fresh flashed Raspberry Pi OS should work out of the box, at least with a Media audio profile. I can pair the smartphone and the RasPi but I cannot connect using bluetoothctl. I use the Raspberry Pi OS (32-bit) with desktop, based on version Buster on a Raspberry Pi 4B. […]

Categories
Raspberry Pi User Help

raspberry pi as an iscsi controller

I can put all the separate pieces together by hand: connect a hard drive to the rpi set up partitions on the hard drive setup some iscsi service to use those partitions set up the rpi to connect to a preexisting network or set it up to manage its own wireless I am wondering if […]

Categories
Raspberry Pi User Help

How to develop/automatic test Raspberry PI images without constant plugging and unplugging SD card?

I am new to Raspberry PI development. I am building my custom boot image. I am taking image file, mounting it on linux, adding/removing somefiles, unmounting, plugging sd card to cardreader, dd-ing image to card, unplugging it, then plugging it to raspberry pi, then boot it. A lot of manual operations. Is it normal? Is […]

Categories
Raspberry Pi User Help

How do I read the cpuid in aarch64 asm?

In armv7 / 32bit mode I can read the cpuid using uint32_t arm_cpuid; __asm__("mrc p15, 0, %0, c0, c0, 0" : "=r"(arm_cpuid)); This gives 0x410FD034 for RPi3 and 0x410FD083 for RPi4. What is the equivalent for that in aarch64 / armv8 syntax? Note: I’m trying to detect if I’m running on a RPi3, RPi4 or […]

Categories
Raspberry Pi User Help

Gravity TDS to Raspberry with ADC

I have Raspberry pi, and need to calculate ppm of a liquid. I’m using this as my tds: But it somehow needs an ADC, so I decided to use ADS1115 from adafruit. Problem is in most arduino tutorial they only import a library to get the value, anybody know how to convert the value from […]

Categories
Raspberry Pi User Help

Gravity TDS to Raspberry with ADC

I have Raspberry pi, and need to calculate ppm of a liquid. I’m using this as my tds: But it somehow needs an ADC, so I decided to use ADS1115 from adafruit. Problem is in most arduino tutorial they only import a library to get the value, anybody know how to convert the value from […]