Microcontroller

Bresenham's line algorithm for power control

Bresenham algoritm

When creating a microcontroller devices periodically there is a problem of regulation of some of the analog value, such as voltage at the IC pin, LED brightness, power, etc. In order to form an analog signal with a given amplitude at the pin of chip commonly used method of pulse-width modulation - PWM. The basis of the PWM output is on pin IC pulses with varying duty cycle.

Calculation of the tabular functions for microcontrollers

Calculation of the tabular functions for microcontrollers

When programming microcontrollers sometimes there is a problem of calculation of math functions. And despite the fact that the standard AVR GCC library includes support for float numbers and basic math calculations, in practice is not always possible to use these routines.

Connecting the Joystick from game consoles to your PC

Sega joystick and PC

8- and 16-bit game consoles that were a long time ago very popular, has long lost its leadership in gaming and entertainment market. However, the old games are still popular and yet are perfectly competitive of the interestingness with the modern multi-gigabyte and multi-gigahertz monsters. Today there are many different emulators of old consoles and the Chinese industry is still produced a console itself as well as joysticks to them.

The Christmas LED-Snowflate-thermometer

Новогодняя светодиодная снежинка с микроконтроллерным управлением и индикацией температуры

This LED "Snowflate" made from mainly blue and white LEDs and can serve as Christmas present, Christmas ornament or night light. The device also has a thermometer. Snowflake has 6 beams and every beam contains 8 superbright LEDs. I have used blue and white LEDs with different diameters.

USBasp programmer

USBASP programmer

USB ASP programmer is an popular USB programmer for AVR microcontrollers. There are many different implementations of USBasp, but since PCB dimensions were not suitable for my case, I has made my version of the PCB.

Power regulator for solderer

Power regulator for solderer

Power control is useful when soldering. It allows to keep the temperature of a soldering tip at the optimal level, reducing its destruction and extends its life. I found in the Web two circuits of microcontroller power regulator by L.I. Ridiko. These devices are control the power by changing the number of half cycles through mains soldering iron on the second. The higher power set, the more half-cycles will go on a soldering iron and the less will be a pause between them. Because the switching occurs in moments of transition of line voltage through the zero, electrical noise, caused by the regulator, will be minimal.

Subscribe to Microcontroller