Showing posts with label code. Show all posts
Showing posts with label code. Show all posts

Saturday, January 6, 2018

Cheap LED string rework (220VAC to 12VDC)

Hi friends!
Before New Year I've searched for a multicolor LED strings to decorate my home. But there was a problem. All strings at our stores must be powered from mains 220VAC. But there are some places at home without mains power outlets due to safety and 12VDC only. And the other reason is poor quality of most these products. Some of them are really dangerous and can burn without any visible reason.
So I decided to make some rework of a cheap LED string.
Click on any photo for full size.

60+60 series LED's work with 12VDC supply

Friday, October 21, 2016

Image Editor/Converter for embedded (MCU-based) projects

Hi! Some time ago I've bought Arduino Due board (based on Atmel SAM3X8E chip) and 4.3'' 16-bit color TFT display. When I started to code graphics output, I've found that existing picture tools not very handy for me. So I've made a helper tool for graphic conversion. After some time, I've decided to make this program open source and add some useful functions.

I've tried to make easy-to-use image editor/converter, and hope I succeeded.

PixelImage
works under Windows (Linux users, sorry...)


If you find this project interesting, please feel free to leave comments and bugreports at sourceforge.

Tuesday, July 26, 2016

AM2320 library for AVR's without hardware TWI support

Hi! Some time ago I've bought several AM2320 sensors. They have I2C interface, so it is very easy to use them with AVR's that have h\w TWI support. But what about low-end MCU's without full TWI implementation (Tiny2313, Tiny24, etc.)?
First I tried to use USI module for TWI implementation. As for me resulting code was too "fat" for 2Kb FLASH and there was no need for full TWI feature support (the only TWI device in my project was AM2320).

After some time spent on datasheet reading and hardware testing I've wrote a C library for these sensors. Please note that AM2320_ReadData function writes raw data to variables. This notice is actual for negative temperature values, where 0x8000 bit is set.

AM2320 Datasheet