sparkfun / pdp-qwiic-micro-python

Repo to manage the logistics of micro python qwiic driver development
0 stars 0 forks source link

SparkFun Qwiic Ultrasonic Distance Sensor - HC-SR04 #3

Open gigapod opened 10 months ago

gigapod commented 10 months ago

Board

SparkFun Qwiic Ultrasonic Distance Sensor - HC-SR04

Notes

Driver

sfe-SparkFro commented 10 months ago

Don't have a proper Arduino library, just example sketches in the hardware repo. This example appears to have almost bare minimum code required for functionality (plus showing on an OLED display).

Looks like the STM8 on board is programmed with a default address of 0x00, which is likely going to cause problems because it's the general call address. I'm surprised we don't have complaints about that, that's pretty bad practice.

sfe-SparkFro commented 8 months ago

Ok, ended up making an actual Arduino library for this, then converted that to Python. Also, we'll be updating the firmware on the STM8 to use a default value of 0x2F moving forward. Users can change the address using example 2. @faludi Please let me know if you run into any issues with this!

faludi commented 8 months ago

Having trouble accessing the link above (https://github.com/sparkfun/Qwiic_Ultrasonic_Py). I get a 404 error. Is it a private repo?

gigapod commented 8 months ago

Not any more - now public