Jason (Tse-Kang) Wang
How to make (almost) anything!

Week 10

input devices


This week: measure something, add a sensor to a microcontroller board that you've designed and read it.

I use my modified version of Satshakit to do this week's input learning.

While both tests work great, I managed to lost the code for the first test. So I only put up the code for the analog 4051 reading.

I also modified the SatshaKit by Daniele Ingrassia, and add FTDI connection pins for easy programming to use in this week.

SatshaKit FTDI Ver. Board File!!!

SatshaKit FTDI Ver. Schematic File!!!

Arduino Code for reading analog through 4051.


SatshaKit FTDI Version


I love the Satshakit by Daniele, and since I need about the same amount of pins for my final project, I decide to modified it to do some program testing. The modified Satshakit, Satshakit FTDI ver. The png image for milling.
Left: 328P Arduino / Middle: original SatshaKit / Right: My modified Satshakit FTDI ver.


test run Capacitive Touch sensing door lock


A door lock's key pad system using the metal parts on the door as capacitive switch. The cupper tapes act as both decoration and wires for the circuit.
Leds produce touch feed back for the user outside the door. Simple 3D printed servo adaptor for the lock, no screws needed by utilizing the original lock bracket as a clamp.


Main Course Reading angle from Potentiometer


For my final project, I need to read 12 potentiometers at once and use the data to determine the angle of each joints on my quadropod.

The mega328p mcu only have 6 analog pins and I need twelve. After some research, I learned that I can use 4051 IC as analog multiplexer and increase the amount of my analog pins.

Reading analog input from 4051 turns out much easier than expect. To make data easier to use, I also map the data read into 0~300, the moveable angle of my motors.