Showing posts with label led. Show all posts
Showing posts with label led. Show all posts

March 30, 2015

Tilt-based led light

Hello makers, readers and curious!

   I´m here today to bring you a sort of toy I have made for the Arduino Day (March 28th, 2015). It is a simple tilt-based LED light (images below), and despite the fact that it features no Arduino (!?), it made me proud of my maker capabilities!. 


   The working principle is simple: depending on the  position of the tilt ball switch, the LED lights or not; you can check the schematic below. I have used the following materials:

- 2x 1.5V coin cell batteries
- 1x 100R/ 0,125W resistor
- 1x 5mm red LED
- Soldering
- Glue, to put the batteries together :) 

The original idea came from my mom, which is a special children's teacher, and it intends to stimulate and entertain them, and help them learn quickly.



I have not tested the toy with children so far, but will be glad to share the results with you when I do. See you guys next time!.

June 27, 2014

Leds and Buttons - Freescale FRDM-K64F

Hi makers, programmers and curious :)

   This post will be about my first contact with the ARM technology, by means of my newly arrived Freescale FRDM-K64F development board. As a good Arduino user the first thing I wanted to do with my board was to blink the RGB led it features onboard, so I did it!. The code I developed can be found here . I got a lot of help and examples from the mBed online compiler.

my first ARM-based project

   The blinking LED example from mBed website uses a "wait()" function which I don't like (because wastes processing time), so I developed my own code based on a counter that controls the "entering or not" in the blinking function. It is possible to notice in the gif image above that all the led colors are being lit, one after another; I was satisfied with the results, so I moved to the next step: adding buttons to it!. 
--------------------------------------------

   Again my code is very simple (and can be found here): when no buttons are pressed the blue LED is on; when the left button is pressed the LED turns green and for the right button the LED turns red. It took me only a few minutes to write, compile and test both circuits!.

buttons and LED's on my ARM board

I hope you guys are enjoying my blog, and I surely want to here from you. See you all soon.