Week 9

Things I did this week:

  1. Add a sensor to a microcontroller board that you have designed and read it

Add a sensor to a microcontroller board that you have designed and read it



Adafruit Free Touch

Adapted from week 6.

This board is using the Adafruit FreeTouch Library to sense if the eyes of Morty is touched.

See more here
BACK TO TOP


Pressure Sensor

I tried to use the DPS310XTSA1 pressure sensor provided in the inventory. It is a lot smaller than I imagined.

  1. Super small, hard to solder.
  2. Datasheet was clear, but didn't mention how the sensing happens.
  3. No existing example for the small DPS310.
  4. The code of existing libararies does not work, had to modify.
  5. Not sure about the difference between XIAO RP2040 and XIAO SAMD21.
  6. Handmade "PCB".
  7. Dead Bug style soldering.
Way smaller than I have imagined, the sensor is marked by the red box. It is smaller than a SMD LED but has 8 pins (4 on both sides).
I tried something odd. I tried to use copper foil on top of the sensor with solder wire as an extension.
I cut out thin pieces of copper foil (for vinyl cutter) and carefully placed them on a piece of tape to match the pins of DPS310.
Back view. Looks weird but I tested that there's no shorts.
I then tried to follow this tutorial, it is using a nicer version of DPS310. I recieved something in the serial monitor, but the temperature seems to overflow, and I'm not sure how the pressure value is found.
I then designed PCB board following the datasheet circuit example.
The PCB design is seperated into two sections so that if I mess up somewhere I do not have to resolder the sensor.
Lingdong suggested me to use deadbug style to solder the pressure sensor.
Took a ton of time to solder.
The microcontroller with the sensor.
I then used the XENSIV_Digital_Pressure_Sensor library. The bug is due to the use of a deprecated method, and I followed this post to modify the source code of the library.

Also tried this deprecated library and modified 4 source code files to run their examples.

Got error code.
BACK TO TOP


The pressure senser that I actually need

Step response

BACK TO TOP