external sensor connection
2830 2 2021-2-28
Uploading and Loding Picture ...(0/1)
o(^-^)o
kalyan088
lvl.2
United States
Offline

Hey Robomasters,

Did anyone connect an external sensor like a hc-sr04?Looking for a manual or a helper guide for connecting a sensor.  


Thanks
2021-2-28
Use props
Duane Degn
Second Officer
Flight distance : 622234 ft
United States
Offline

That would be really cool, but I haven't found a way to do this.
2021-4-20
Use props
JohnieBraaf
lvl.2
Netherlands
Offline

hc-sr04 will not be possible because it needs an exact time measurement (PWM timer pin and edge detection), but I read somewhere that you can use the serial port for simple UART sensors.
Haven't tried it myself. https://robomaster-dev.readthedocs.io/en/latest/python/uart.html

I think you better use a seperate microcontorller to connect and read the hc-sr04 and then report to the S1 using UART.
2021-4-21
Use props
Advanced
You need to log in before you can reply Login | Register now

Credit Rules