Archive for Microcontroladores

Notas de aplicación de Microchip

Cuando vas a crear algún cacharro con un microcontrolador PIC, te serán de gran ayuda las Notas de Aplicación de Microchip, en las que puedes encontrar gran cantidad de información sobre como interconectar circuitos, «trucos», circuitos adicionales, etc…

Lista alfabética de Notas de Aplicación de Microchip.

Deja un comentario

Librerías para Arduino

En esta entrada tienes las direcciones para acceder directamente las librerías estándar de Arduino y las contribuidas (en arduino.cc).

Deja un comentario

Tutoriales de robótica y electrónica Starlino

Starlino es una página donde encontrarás proyectos, trucos y artículos de electrónica aplicados a la robótica, componentes y dispositivos.

Deja un comentario

StrobLED, a quartz controlled LED stroboscopic light for turntables

First, I know my english is not perfect. If you want to contribute sending me a better redaction, you’re welcome to send.

IN CONSTRUCTION – AKA: INCOMPLETE!

One week ago, in the TNT-audioaddicts group from Yahoo! groups, an user started a thread about building an strobe for his turntable. There was discussed the fact that neons that turntables brings light twice every mains cycle (the + and  – of it ). The person started it offered as a solution for this using 2 leds each polarized in one way. This has some problems:

  • you need a low voltage output for AC, (you can get it from transformer if available)
  • If the mains frecuency has an error (ie. 1 hz) and your turntable mount a synchronous, then the error will be in both strobe flash and plate speed, so, when the speed seems be adjusted, you’ll have that error (the mains frecuency error).

I proposed the built of a led+microcontroller-quartz controlled strobe light source, and here it is.

I’ve used two tools for developing this and both can be obtained free of charge with enough features for this project (limited versions but not time limited):

Also, you’ll need a programmer for the PIC, if you have one or know anybody has one use it, if you can’t get one, search the web for an easy to build-cheap one. There are lots of designs in the Internet, just search for one you like. For example search for JDM programmer, and build the one you like (but be sure it programs the PIC12F629!). For programming the PIC you can use Winpic800 or ICProg.

The circuit is very simple, just the PIC, the power it need to work, the MCLR supply (this doesn’t have a reset button), a jumper to select 50/60 Hz simulation, and the LED. It can be powered for anything between 3V and 5V, but beware, the current limiting resistor for the LED is calculated for 3V, see below to calculate the value if you want to use an higher voltage.

Notes about the LED:

  • You can use the LED you like (hey! up to 25 mA), this design is calculated to use only ONE LED, because the PIC can draw only current for one (25mA max.).
  • The current limiting resistor (R1) is calculated for 3V, see below to calculate it for higher voltage.
  • If you think is better use more than one led, we have the option of drive them by a transistor. Tell me if you think is this is interesting for you and i’ll do a new design with it.

The schematic:

As i said before the schematic for StrobLED is pretty simple, only complicated 😀 by the use of the quartz crystal, but as we need precision for this is better use it instead the built-in oscillator. I’m using 8Mhz instead 4Mhz to get more control over the delays used to blink the LED, i’m using 8Mhz instead 20Mhz to save power if you use batteries.

StrobLED-schema

This is simple:

  • Q1, C1 & C2 are the oscillator.
  • R1 is the current limiting resistor for the LED (LED1).
  • R2 is a limiting resistor to bring MCLR high (if you bring this low (to GND) then the microcontroller resets itself, but this is not needed here)
  • JP1 is the jumper to select the frecuency operation (open= 50Hz, closed=60Hz)
  • NOTE: in this design GND=VSS, i’ll fix when finish this post.

The PCB:

NOTE I’VE NOT BUILD THE PCB for now, it may be wrong, i’ve test the StrobLED in a breadboard. If you have doubts don’t build it until i remove this warning.

This is a little one (could be smaller using SMD components, but complicated to mount!). I think this size can be installed in any place in your turntable (if you want to do that) or in a little box+2AA batteries and use «by hand».

The PCB with components placed:

StrobLED-pcb-components

And the routes:

StrobLED-pcb

Later i’ll post both schemas and PCB in Eagle format and PCB in PDF also.

PCB Update.

As the previous PCB has very narrow traces, it may be difficult to make it for a hobbyst, so i’ve make another PCB design with thicker ones and built it with a CNC Mill. Here it is:

CNC-PCB

The V.2 Layout:

StrobLED-pcb-components-v2

The V.2 PCB:

StrobLED-pcb-v2

V.2 Component side:

StrobLED-components-V2

Finally i assembled the StrobLED in the PCB above.

Here is a picture of it with the Hz jumper installed (then it would run at 120 Hz, so it simulates 60Hz AC)

StrobLED-with-jumper

The oscillator performs very well. Here is running at 100(50)Hz. (Click the image to see full size).

StrobLED-50Hz

Also running at 120(60)Hz. (Click the image to see full size).

StrobLED-60Hz

How it works with an strobe disc? Well as my Revolver turntable has not an Strobe (nor adjustements), i only can cut a Vinyl Engine one and take a picture (long exposure) to show it works: (Click to enlarge).

Strobe-50Hz

The code:

The code is writed in MikroBasic and now i’ll post it later (must cleanup it 🙂 and add the frequency routine (now it works at fixed 50Hz))

Calculating R1

The R1 resistor is placed to limit the current throw LED1 and of course the pin GPIO of the microcontroller. If you change the LED and/or the power supply voltage, you must recalculate its value, but don’t be scared, is very simple.

By Ohm’s law, the current throw a circuit is the same in all, and it is R=V/I (R in ohms, V in volts, I in amps), then you must calculate R to limit the current throw this way:

Imagine you decide to use a LED that has a forward voltage of 1.9V and a forward current of 20mA, look no more: is this one.

Imagine also you decide also power StrobLED with 4.5V instead 3V (ie. 3xAA batteries).

The calculation is:

R=V (4.5-1.9)/A (0.02)

You must substract from voltage, the voltage drop of the led (AKA forward voltage), and we passed mA to A (by dividing by 1000) so R:

R=2.6/0.02 = 130 ohm

The nearest commercial (by up) value is 150 ohm, so choose it. To calculate the disipated power (and resistor power) the formula to use is W=V*A, being V=The diference between power supply voltage and LED drop (2.6 as we calculated before) and A is the current throw it (remember, the same in all the circuit):

W=2.6*0.02= 0.052W, so a 0.25W (1/4 W) resistor will be enough.

For this LED and using the StrobLED with 4.5V you must replace R1 with a 150 ohm, 1/4W resistor.

Will continue….

If your turntable hasn’t a strobe disk just get one from Vinyl Engine, print it, carefully cut it, more carefully make the center hole, and you’re done!

License:
Creative Commons License
StrobLED by Jose Maria Terry is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License.
Permissions beyond the scope of this license may be available at http://www.automati-k.com.

Deja un comentario

Conectando un microcontrolador AVR a Ethernet

En un par de artículos, podemos aprender como conectar a una red ethernet un microcontrolador Atmel AVR. El primer artículo trata del hardware, el segundo de la implementación de un miniservidor web sobre dicho hardware, y aquí están todas las descargas relacionadas con el primero y con el segundo.

Deja un comentario

Construyete un programador PicKit 2

Como Microchip ha hecho pública la información (hardware y software) de su programador PicKit 2 para microcontroladores PIC, hay quien ha publicado como construir un clon de uno de estos aparatos, como por ejemplo aqui. Bien sencillo, con una placa a una cara.

Deja un comentario

Circuits@Home

El propietario de Circuits@Home lo define como un blog sobre electrónica y microcontroladores en el que habla de sus proyectos, como los diseña, construye y depura. Bastante información de uC’s y Arduino.

Deja un comentario

Hagamos robots!

Así se llama este sitio en el que encontrarás trucos, componentes, preguntas frecuentes, proyectos y foros entre otras cosas para que construyas tu propio robot.

Deja un comentario

AVR Freaks, un sitio sobre uC Atmel.

AVR Freaks es un sitio dedicado a los microcontroladores Atmel. Puedes encontrar proyectos, programas, herramientas, etc… Todas relacionadas con la familia de microcontroladores AVR de Atmel.

Deja un comentario

uC Hobby, un sitio dedicado a la experimentación con microcontroladores.

Hemos encontrado el sitio uC Hobby, donde hay cantidad de proyectos, ideas, recuperación de componentes, microcontroladores, Arduino…

Deja un comentario

Centro de preferencias de privacidad