Monday, December 31, 2018
ESP8266 library for EFM8 microcontrollers - Server mode
Of course this is not a real web server although with an SD card whole HTML pages could be served. The purpose of this library is to extract queries from a URL requested by a client. This way for example you could change color and brightness of an RGB led using a color wheel in a phone app or control home appliances from anywhere in the world.
Saturday, December 8, 2018
ESP8266 library for EFM8 microcontrollers
Thursday, July 12, 2018
AVR EEPROM Library | ATmega328P
- Flash memory - for the program code
- SRAM memory - also referred as data memory (volatile memory)
- EEPROM memory
Normally, to make use of the EEPROM memory, you would have to read the datasheet and implement some read/write functions using some registers. But fear not - the AVR-GCC compiler comes with prebuilt routines making things much easier.
Friday, July 6, 2018
How to tin your PCB using plumber's paste | Homemade PCB
The last step in making your own printed circuit board (PCB) is tinning. Tinning is important because copper oxidize very fast, leading to an ugly look, hard to solder pads and over longer time, breaks in traces.
When you order PCB's from a manufacturer, the pads look all nice a shiny. I was looking for a way to achieve this at home and I found one. It doesn't involve strong chemicals, it's cheap and it only takes a few minutes.
Example of homemade PCB tinning |
PCB after tinning |
PCB before tinning |
Thursday, May 24, 2018
Analog to Digital Converter (ADC) library for AVR microcontrollers
This library provides a quick and easy way to set up an ADC on AVR
microcontrollers and retrieve the values in 8-bit or 10-bit format in an
interrupt driven fashion.
Nowadays even the cheapest microcontroller has a build-in ADC (Analog to Digital Converter). An ADC converts analog signals into digital signals and can be used in a wide range of applications like recording a signal from a microphone into a digital format, reading light sensors like an LDR (light dependent resistor), measuring current consumption, reading temperature or humidity sensors, etc. All these requires voltage measurements that an ADC can do.