Week
08
About
For week 8's input design, I wanted to test the proximity sensor! I decided to use the XIAO RP2040 as my main microcontroller. This robot is happy around objects and sad when it is alone.
I used the HC-SR04 Ultrasonic Distance Sensor
Because the HC-SR04 that I had is from an arduino kit and compatible with 5V, and the Seeed XIAO only has a 3.3V, I needed a Level Convertor- decided to just use the arduino for now as the level convertor for the sensor.
After this initial prototype, I began making the circuit to implement a Time of Flight sensor to attach to this display. Started with KiCad to do the schematic and PCB layout.
Used flatcam to convert the gerber files from KiCad into gcode after selecting the mill bits.

[LEFT] Before conversion to gcode.

[RIGHT] After prepping for CNC with the routes.
Then I milled it in the CNC with a V bit for the engrave and flat mill to cut and drill.

[LEFT] V Tool in action.

[RIGHT] Flat mill drilling.
Here was the outcome after soldering and putting it together.
However, there was an issue: the way I designed the PCB, the screen went on one side and the sensor on another, so it didnt feel interactive. So I re-designed the mill to keep the sensor and screen on the same side.

Here is a sped up process of the new circuit:
Here it is assembled.
Here it is working. Full code is in the zip file that you can access below.
To download project please click the link below: download week 8 files