More than one way to Arduino

Arduino does not just come in one form.  There are several you can choose on depending on what you want!

Here’s a few I’ve used:

48912-arduinouno_r3_front.jpg
Arduino Uno- the classic, a great starter Arduino for tinkering 

 

ArduinoMega.jpg
Arduino Mega- very similar to Uno but has more pins and capacties
LilyPad_Arduino_Main_Board.JPG
LilyPad- besides being prettier and smaller this Arduino is often used for wearable projects as the pins can be sewn to with conductive string
1222-03.jpg
Arduino Gemma is tiny and only about $10.  It still can do a lot of things and also draws very little power.  I’ve been using a small 350mAH rechargeable lithium ion battery! 

 

imgres.jpg
Arduino Circuit Playground – NEW! an all-in-one board that has RGB LEDs and sensors (including a sound sensor, temperature sensor, light sensor and mini speakers built in! ) for only $20! 

~also there’s ‘off-brand’ Arduinos that are cheaper but of course are riskier in terms of quality.  I bought the Elegoo version of the Arduino Mega off of Amazon for about half the price and it’s working just fine for me!

 

 

 

Advertisements

LED Strips

LED strips are amazing!  They are lengthy, bright, affordable and easy to manipulate as they are flexible and can be cut in increments.

There are two main kinds – strips whose LEDs are individually addressable, and strips in which all LEDs are addressed at the same time.

images.jpg1507_LRG-600x461.jpg

So you want to control an LED strip with Arduino…

What you need :

  1. LED strip – there are so many kinds and needs will vary!
    1. Today I am using Adafruit’s 30 RGB neopixel strip.  Neopixels are like LEDs 2.0, the controller chip is actually inside the LED itself, thus these are individually addressable LEDs!
    2. Adafruit’s Neopixel Guide!
  2. Arduino – need one with a fair amount of memory, I will be using the Uno
  3. Power Supply
    1. 5V DC Power supply 
    2. 3.7 Volt lithium-polymer battery – if you want it to be cordless for wearables etc. 
    3. don’t use higher than 6v you will fry the strip!
    4. if controlling more that 10 neopixels you cannot just power the strip directly off the 5V pin and your computer!! You need to hook up the 5V power supply
  4. capacitor (1000 µF, 6.3V or higher)
  5. resistor (probably 300-500 ohm)
  6. helpful videos
    1. https://www.youtube.com/watch?v=KaClIgAVuI8

Using LED strip – non individually addressable 

  1. need transistor any power NPN or N-Channel MOSFET – TO-220 Packages

 

Putting it together….. I still need a capacitor.. so to be continued …

 

Stepper Motors

 

FH2O7RUIB22QR8X.MEDIUM.jpgA stepper motor is a very magical motor.  That is because it works through electromagnetism. The shaft of the motor is mounted with a series of copper coils and magnets.  The copper coils are charged by an electric current in a sequence in order to activate and deactivate the magnets.  These forces of attraction and repulsion work to spin the motor!

url.jpg
you may have done electromagnet experiment like this in grade school!

Arduino is great for controlling stepper motors!  You can control speed of rotation extremely accurately in the code and with sensors!

Here is a great guide including code for stepper motors! 

LEDS+Sensors

So now’s the time for starting some real interactivity with lights and sensors!  Again my goal is to create sculptures with embedded lights and sensors that react according to the environment.

there’s a lot of cool sensors out there!

16-1-popular-sensors-modules-kit-arduino-raspberry-pi-techtronics-1606-09-techtronics@1.jpg
such as: tilt sensor, vibration sensor, laser head sensor, sound sensor, temp sensor, motion sensor, soil moisture sensor, flame sensor, clock module, path

For a simple example of an idea I have is to build a box (either with a material that is illuminated or has holes in it) then program LED lights to interact with a sound sensor, put it all in side and wallah! I think a lot of bands would like this for some good ambient set design!

IMG_8955_800x.JPG
I really love COZO’S shadow boxes and would love to make something similar but with an arduino with sensors and lights inside!

Something else I am working on involving lights and a motion sensor, so using the same design idea as above, I could have a box that gets brighter or changes color the closer someone walks to it.

I’ve gotten past the first step on this one with the help from here –>https://sites.google.com/site/summerfuelrobots/arduino-sensor-tutorials/ultrasonic-ranging-module-hc—sr04-rgb-led-module

LEDs 101

Image result for led diagram

LED = Light Emitting Diode

advantages over incandescent light sources = lower energy consumption, longer lifetime,  smaller size, and faster switching, variety of color and controlling capabilities!

RGB LED  = LED containing one red, one green and one blue LED

PWM = post width modulation is a technique used (in/with Arduino) for controlling the brightness of the LEDs, allows you to fade the LEDs, Arduino only has 6 pWN pins so you can only hook up 2 rgb LEDs at a time =[

-also PWM is what is called with AnalogueWrite() commands

-also PWM is used for driving a motor at various speeds

-has to do with frequency

RGB basic hookup +code

so many color possibilities!

fade 1 RGB LED

 

 


My experience

Hooking up one LED and experimenting with it’s color were fairly easy and satisfying.

Next getting the fade working was easy, hwoever understanding the fade code is much more difficult.

Next I want to control more than 1 LED, which I found to be more difficult than expected.

Other things you need to control LEDs

*resistors

*transistors

Internet of Things

Of all the technology trends that are taking place right now, perhaps the biggest one is the Internet of Things; it’s the one that’s going to give us the most disruption as well as the most opportunity over the next five years.

~Wired Magazine

IoT is about “the interconnection via the Internet of computing devices embedded in everyday objects, enabling them to send and receive data.”

connected devices

smart devices

Micro-controllers 101

A micro-controller is a computer! That is, it is a chip with a CPU (central processing unit), that has inputs, outputs and memory (RAM).

Processing2.gif

Micro-controllers are “special purpose computers.” They are made to primarily run just one program and perform one task (while the computer you and I are on is made to run thousands of programs). Because of this they are generally quite small and low power and low cost.

Related image

Micro-controllers are often embedded inside another device, often a consumer product.  For example, a microwave has a micro-controller inside of it that takes input from the keypad and displays an output on the display and then runs a program that turns the power generator on and off.