There are many examples of the ultrasonic sensor being used with a Pi. There's no problem at all hooking one of those up.
Oddly your Waveshare links didn't work for me until i changed them from .html to .htm
[/quote]
Sorry about the mistake. Anyways I was able to establish connection with the esp32 using the USB port. I uploaded a simple code to send data to the Pi, in my esp32 and I was able successfully see it on the terminal. The next problem is how I can send data to the esp32 from the Pi (I can do it vice versa). I am not sure of the library and functions to perform that in the pi. Do I use serial.write or something like that to send the data to the esp32?
My aim to send the sensor data to the esp32 and then forward it to TTN over LoRaWan.
Any help is much appreciated.
Thank you!
Oddly your Waveshare links didn't work for me until i changed them from .html to .htm
[/quote]
Sorry about the mistake. Anyways I was able to establish connection with the esp32 using the USB port. I uploaded a simple code to send data to the Pi, in my esp32 and I was able successfully see it on the terminal. The next problem is how I can send data to the esp32 from the Pi (I can do it vice versa). I am not sure of the library and functions to perform that in the pi. Do I use serial.write or something like that to send the data to the esp32?
My aim to send the sensor data to the esp32 and then forward it to TTN over LoRaWan.
Any help is much appreciated.
Thank you!
Statistics: Posted by lakindu — Thu Jul 25, 2024 9:52 am