Group Assignment for the Week 7, observing the operation of a microcontroller circuit board

Group members

This week amonside of designing electronics, we were supposed to use the test equipment in our lab to observe the operation of a microcontroller circuit board.

Work description

Multimeter

We started to test our board with multimeter. We set it to beep mode, which means that it makes a sound, if the connection is formed and short circuits can be found. We tested all the connections and started with the most crucial, VCC and GND. There was no short circuit there, so we moved on to other connections and found no problems. We also tested button to see that it created the connection and it created the "beep", when the button was pushed.

Oscilloscope

We all have managed to program, with the hello echo program, the board we had to design and build for this week assignment. Our plan is to measure the signal received from the serial port in one of the boards when pressing the key in the keyboard.
First, we check the oscilloscope callibration signal by putting the probe in the connectors for that. We thought the signal was good enopugh for our purposes.

Then, we put the probe in one of the pins of the connector, as shown in the picture

When pressing different keys as shown in this first picture

...we got the signal shown in the following picture.

Which is a series of 0's and 1's, that is growing each time we pressed a new key. Therefore we are getting the signal from the output of the micro.
In order to identify in a better way the signal, we decided to measure from the other pin, to see if we could identify the signal produced by one character. In fact, one of us would press one key, and the others would guess which one he pressed.
So we changed the probe

and we got the following signal

Measuring the signal of the button

We measured the signal of the push button to see how filter for the button works. Antti Mäntyniemi suggested us to put filter for the push button on echo hello-world board. From his experience of previous year’s Fab Academy assignment, he found that when the push button is released, sometimes it makes unexpected glitches. To avoid this happening, he put filter using resistors and capacitor to make the falling and rising push button signal clear. We followed the advice and put filter for the push button on our board. As part of the group assignment, we measure how the filter works using oscilloscope.
The board demonstrates two patterns of the behaviour of the signal of the push button, with and without the filter. The filtered circuit uses two 10k ohm resistors and 10nF capacitor. The another circuit uses only one 10k ohm resistor. We changed the circuit by using jumper to connect the pin which goes to add capacitor and the resistor.

screenshot
Without filter
screenshot
With filter


Here is the result. Without filter, the signal was sharp, but sometimes it gave us glitches when the push button was released.

With filter, the signal was more gradual compare to the previous one, but the signal was clean without any glitches.