I have blogged extensively on this topic my kit was a let down aside from the Arduino MKR-WIFI and a emergence stop switch ( which I have plans for but not here) there was not much usable, It look like somebody cleaned out their closet. So what am I going to do?
Well I am going to use the Arduino, as it has both Bluetooth and WiFi which I don't like using in my environment, but there is nothing wrong with Bluetooth! So I will use the Bluetooth interface to interface but it has a USB-A connector. So what im going to do: Im going to change it to a Bluetooth Interface with the help of the Arduino, and a USB-A brake-out pcb. Next I will need a power supply I need a power supply that thats good for 5 vdc output with at least .5 ma.
The Arduino has a USB-micro interface that I will have to wire it to the USB-A break out, and a wire to the Arduino to my scanner as its output is a string of text with a return at the end. I use this all the time to input data (bar codes) to my Data Base. Wiring is shown below. The only thing I need to do is to ground pin 4 on the USB-micro to ground Mode Detect which turns on the On-The-Go (OTG) mode.
Pins | USB-A | USB-micro |
1 | 5 vdc | 5 vdc |
2 | Data + | Data + |
3 | Data- | Data- |
4 | gnd | Mode Det. |
5 | gnd |