Monday, September 24, 2007

Lab 3 - Analog In&Out - Problem occured/Figured out


This is not my first time doing Analog In and Out. The potentiometer worked fine last time, but it didn't tonight no matter what I was testing around anything.
The problem was that LED didn't show delicate difference when rotating either potentiometer or flex sensor. It kept blinking in very same interval. Then I switched the power source from USB to A/C adaptor but same result was shown. Only reason that I can assume what caused this malfunctioning LED might be from the wood attaching process. Since the screws were about 3mm longer than the depth of wood piece, I had to grind them by using of disc grinder.
Did it somehow damage the board? Were those screws fasten too much?

Sensors I tried to sync:
  • Potentiameter
  • Flex Sensor
  • Force Sensor
On arduino program, I could see numbers changing and they were not following given analog input. They even varied when the switch stopped.

__________________________________________________________________
Revised Sep 25th - It turns out, my board only works when doing Digital IO, not Analog IO.
Mouna helped me out enormously in thousand ways to figure out what caused this, we finally came up with the idea of 'partial damage' on my arduino board. So, I need to buy an extra board to explore deeper Analog world.

Lab 2 - Digital In & Out

  • Two LEDs (Red/ Yellow)
  • One Momentary Push-button Switch
  • Voltage Regulator
  • Resisters
At first, I was a little careless for resister so didn't get the right amount of light from LED. Very soon I figured that I need 'lighter' resister which is 97.5 Ohms one and....Voila!


Second mistake I made: didn't connect digital input pin for a switch. (on aruduino: int switchPin = 2),then corrected that error.



Wednesday, September 12, 2007

Lab 1



Finally, with assist from peers, I was able to create this simple bread board.

Initially, I set the board with only few wires just to make sure whole electricity flows smoothly from power adapter -> voltage regulator-> red LED.

The view of both voltage regulator and momentary switch (both of wires should've been red).

This LED will always glow anytime I press the switch, meaning an 'indicator' to figure out whether the board gets electricity or not.
Yellow LED's luminosity varies by Potentiometer. (When soldering, It was tricky to tell which is Input, Ground and Output at first. I found it's better to have blue wire in center.)