LOGO

_About me

_About my lab

_About my final project

Week 10. Output devices

fan

So, this week we were asked to learn something more about embedded programming in AVR chips. To be fair, my past week was not such a success in terms of delivery. But it was crutial to be able to have a nice project for this week. Last two weeks I have learn tons of embedded programming, circuits, and signal management. Its been so intense as well as fun.

For the infividual assignment, I decided to make an stroboscopic lamp!

Stroboscopic effect is able to freeze a movement object by flashing an intense light in specific a time when moving. I asked Jiri about the frequencies and some other aspect needed and he gave me nice advices.

Also, as allways, I really want to thanks Zach and Erik. I am learning tons with them. I am starting liking registers and all this stuff needed to code. I wasnt specting that when coding, reading datasheets to know what are you doing with registers wat that crutial.

To do the lamp, I needed to control with a input devide (a potentiometer) an output device (home made LED strip). Also, with another potentiometer I will control a DC motor that make an objetc rotate. This is the element (in this case a rope) tht will be flashed. To do that, I designed a circuit with all those components intalled in the correct pin.

fan fan

Then, I allowed the ADC in the entrance pin of the potentiometer and I translate the analog signal into a digital signal from 0 to 255. After that, I will generate a PWM signal able to parametrize the duty cycle. I linked both parameters in the code and the result is a nice control of the DC motor needed to rotare what you want to flash and the LEDs! It so fun to see how different components behaves so diferently to PWM signals.

After making all the circuits and PCBs I made a homemade LED strip. Those LEDs are so intense. They consume 5 times more than a conventional LED (100mA) so I needed a N Mosfet to provide the current they ask for.

fan fan fan fan fan

Once the PCBs were done, I designed in fusion the wood - aluminum frames and the space alocation model of each elements

fan

I used the waterjet to cut the aluminum frames and the shopbot to cut the wood frames. I assembled everything with black screws and the result is pretty nice.

fan

After assembly all the components, this is the final result of the lamp in use. I am looking forward to add to it more LEDs and also RGB LEDs!

fan fan fan fan

Lessons learnt

  • How to use Kicad
  • How to use an Arduino Uno as an ISP
  • How to use the Arduino ide
  • How to programm any AVR Micro Controller
  • How to start understanding datasheets
  • Difference between port, pin, register
  • How works the ADC of AVR chips
  • How works PWM signals and wich parameters I can play with
  • How to mill without almost no fail PCBs
  • Transistor selection
  • Im sure I have learned more stuff but I dont remember it now
  • Step forwards

  • Stop using PWM and start using a timer counter that allows me to modify the frequency of mi cycle with a fixed duty cycle
  • PUT MORE LEDS
  • PUT RGB LEDS
  • Learn how to shoot this effect. It is impossibe to make a video!
  • What an intense week.... See ya!

    fan back to menu>