Skip to content

Tips and Tricks

Jan Gromeš edited this page May 21, 2017 · 1 revision

This page contains useful tricks and workarounds for various issues you might encounter.

BD7411G and avrdude: stk500_getsync() error

When using the BD7411G Hall sensor, be sure to disconnect the sensor from the shield before uploading the sketch! BD7411G's OUT pin is directly connected to Arduino D0 (serial RX) and when no magnetic field is present, the sensor output is HIGH. Because of that, Arduino IDE will not be able to communicate with the Arduino and any attempt to upload with the sensor connected will lead to avrdude: stk500_getsync() error.

GH1790GLC reading frequency

When using the BH1790GLC, make sure that you are not trying to read the data faster than the readCycle frequency. For example, if you leave the default value, you have to wait at least 1/32 seconds before accessing the sensor again.

J15 Power Setting

Because of the way the shield is designed, you can not select multiple voltages at the same time. If you select more than one voltage on J15, the actual voltage supplied to the sensors will be the highest of those currently selected!

Clone this wiki locally