March 24 – Project concept discussion & review

Project discussion

If you’d like some inspiration for project ideas, you might want to check out the various sensors for sale from the Adafruit website (adafruit.com).

Here is a complete list of all items for sale in their ‘sensor’ category.

Looking at the headings across the top, you can filter that list down by subcategory. Some that I think might be interesting and workable for you are: Weight, Accelerometer (can sense tilt), Motion, Barometric Pressure and Humidity, Air Quality, Light, Liquid, and Proximity.

Touch / pressure / flex

For example, if you click into touch sensors, you can find a force sensitive resistor (FSR), which detects pressure; and a long flex sensor (allegedly popularized by the Nintendo PowerGlove, although I haven’t read this claim anywhere other than the Adafruit website). Both of those operate almost identically to a potentiometer in that they generate a variable amount of resistance in accordance with what they’re sensing. So you could put that in a circuit path, connected to an analog input pin, and as the sensor was affected in some way, the varying resistance would effect the voltage flowing in to the analog pin, which you would be able to detect with the analogRead() command, which would give you a number that you could do something with in your code, like controlling the frequency of a buzzer, controlling which lights were on, or the motion of a motor.

Magnet / proximity

Another idea might be to look into a reed switch or a Hall effect sensor. Both of these are able to detect the presence of a magnet. This seems so fun and interesting to me because you could put magnets in a bunch of different objects and then detect if they were near your sensor, which would trigger some kind of action (light, sound, motor movement).

If you are interested in detecting proximity, you could also use this proximity sensor, this motion sensor, or this simpler motion sensor.

Analog vs digital sensors

In all these cases, the sensors that are variable resistance can be used almost identically to a potentiometer, as I’ve described above. Other sensors, like the reed switch act more like a digital device, in that they are either on or off (either HIGH or LOW) so you would connect those to a digital pin, use digitalRead(), and refer back to our code example that used switches (buttons).

Other more complex sensors

Other things you might be interested are an accelerometer (tilt sensor), a soil moisture sensor, temperature sensor, humidity

If the sensor that you’re interested in is called a “breakout board”, or if it’s on a PCB (printed circuit board), in other words, if it looks like a mini Arduino, then using it is not as easy as swapping it in for a potentiometer. It will be a little bit more complex. However, often these more complex devices are just as easy to use if not easier, because they are provided with sample Arduino code and clear instructions from the Arduino website. So with most of these types of sensors, you can wire them up and configure them exactly as instructed, which will be a pretty easy process.

Review

Let’s dedicate the rest of class time to reviewing technical material from one of the previous tutorials:

 

Leave a Reply

Your email address will not be published. Required fields are marked *