PComp - better late than nothing right?

So ,This post supposed to be uploaded almost 2 weeks ago. I was sick, I was behind and I am still working on my time management. It was all about Analog input. But what is an Analog input anyway? It is Sensors as we know it. It can be any type of analog reading input device, from temperature sensor to photocell, to flex to potentiometer.

To get familiar with them I took a walk around the school, we were supposed to list the different sensors that we see around, that we use on a daily basis. Here is a map of my walk and these are the sensors that I can list.


- ITP Floor alarm - Elevators - Bus cards - Automatic doors - Digital Scale - Store Tag reader at the entry - Electronic Park Meter - Register - Motion detecting car park doors - A/C unit - Park lights with photocell...... well, you get the idea.

As a lab work I had chance to play with different sensors. Our task was to program our lovely smart friend Arduino using a "map" function to make an LED respond to an analog input. Another thing that I learned this week is that not all of the analog sensors can read the full range 10 bit numbers. Not fun right? That's why we need to check the values that our input is reading then convert them to numbers between 0 and 255 using map. It's not so easy but using variables in the program makes it easier.

Here you can see the video of me playing with a flex sensor, a photocell and a potentiometer.


If you are wondering the program, here it is