For the wave observation with oscilloscope check:
Group page
Eagle
Image
Program
It is also called as a capacitive sensor, that can sense proximity by measuring respond time when Tx side set to HIGH. This time changes according to the (virtual) capacitor created between Tx side electrode and Rx side electrode. Capacitance varies depends on what between Tx and Rx electrodes.
I am planing to use this system in my final project to let each modular light units know when they are touched or held by a person.
Basically I am just tracing Neil’s design (Hello.txrx.45) that could be found in Fabacademy Week11 page.
The process how to draw circuit design with Eagle is covered on week7 : Electronics design.
Brief summary of what to do’s to design circuit on Eagle:
add
components.net
command and pull the wire out from all components.name
click wire you made in 2. Wires that have same name will be connected.label
to show name of the wire.value
erc
(Electrical Rule Check)Change
wiring width to 0.016inch.route
and ripup
to draw and erase traces. (Draw trace first, try adjust the trace by right click and switch the trace mode, then tweak the trace by clicking and dragging while holding Alt)polygon
tool is selected.drc
(Design Rule Check) with Clearance setting: 0.4mm (as you use 1/64 = 0.396875mm endmill for inner traces).Again, refer to week7 : Electronics design for complete tutorial.
Dpi : 1600 (Eagle export setting is 800dpi but it comeouts in twice big scale. 1600dpi setting is to fix this problem)
Origin : xyz all 0 (setting bottom left corner of the image to the origin)
Issue
*There was no tool path where supposed to. Ended up slightly shave copper layer with ultrasonic cutter after the milling.
Dpi : 1600 (Same reason as mill traces setting mentioned above)
Origin : xyz all 0
Milled one-sided FR1 (phenolic paper) with SRM-20.
Complete tutorial week7 : Electronics design.
Program reads analog voltage right at the bump and at the drop, and accumulate them while 100 times iteration (Neil mentioned in the lecture that this is for removing noise).
In the end of each 100 times iteration, the program sends the accumulated data of bumps (which is stored in variable “up”) and the drops (stored in “down”) via serial transmit to PC.
Python program is run on PC, and compare “up” and “down” to cut the noise.
C program
Python program
Multi-function oscilloscope.
Waveform virtual instrumentation software
Change probe setting
(Necessarily if you use probe not 1:1)
Main screen in Oscilloscope mode.
Tweak with the division setting
Base
lets you decide the time length per one division on X axis.
Offset
changes the position of the each channel wave. (You may also click & drag triangular handle on the left corner of the black screen)
Range
decides voltage range per one division on Y axis.
Set a trigger
Select source
which channel you wanna use as a triger.
Select condition
Rising will do in most cases.
State voltage level
that will identified as a trigger (you may also grab triangular handle on the right corner of the black screen)
Set to DC mode
To look into absolute value of voltage level, Discovery board should be set to DC mode.
Make sure that the blue tab is on DC side.
150ms cycle of measuring and sending out data could be seen at this point.
Sensor Tx fires, then Serial Tx sends some kind of data to PC.
Take a bit deeper look on sensor part…
When the Tx set to HIGH, Rx signal bumps up at first but then slowly restore 2.5V which is the original voltage at point A in diagram below.
Then as the Tx set to LOW, Rx drops but gradually stabilise around 2.5V again.
The restoration of the voltage varies depending on the conductive property of two electrodes connected at the end of sensor Tx and Rx lines (Virtual capacitor in the diagram).