Turn-key PCB assembly services in prototype quantities or low-volume to mid-volume production runs

Program 3.2′ LCD with STM32 and GCC

Scienceprog have posted a short post with example of driving 3.2′ graphical LCD on STM32F103ZET6 development board. He adapted LCD driver found on internet to match his board. LCD is Ili9320 controller based which interfaces to STM32 through FSMC interface allowing to program LCD as SRAM memory. Once set you can write data (pixels, commands) like you would write to SRAM memory. Project Code is based on CodeSourcery GCC tool set which is free. Grab it if you looking for a project template where GLCD is used. Continue reading

Debugging STM32 discovery under Linux

ARM microcontrollers are well supported in GCC compiler. It allows developing high quality programs in most operating systems. Speaking of debugging situation may differ. Starters in ARM Cortex-M3 love using STM32 discovery boards to kick in ARM world. It is great board because it has everything including development board, stlink programmer/debugger. The only limitation is that manufacturer IDE is only for Windows. Board and processor is to good to leave it for windows guys only. So a Linux version of stlink was started in github. With these tools set up you can flash, debug Discovery boards connected via USB. Sources also include example code and documentation to get started. Continue reading

Fast start with ChibiOS/RT on STM32L-Discovery

Programming of larger microcontrollers becomes way more effective and convenient when using RTOS. It takes some time to get used to using schedulers in embedded systems. This is why good reference is always time saver. IF you keep an eye on ChibiOS/RT then there is a good starting point with STM32L-Discovery. Simply grab demonstration board, GCC compiler and keep playing around. Demo code has most of necessary tasks ready for you including initialization of clocks, I/O tests, DMA, ADC, SPI, PWM and serial interface. Once you’ve done with whats included you can use existing source as skeleton and start building your apps with no pain. Continue reading

STM32F100RB based sunrise alarm clock will wake you up rain or shine

Alarm clocks usually – ring a pair of bells, play jarring noise, imitate the cock a doodle do of a rooster what else? We have seen alarm clocks with radios, and Phones with alarm clocks but most of them [if not all] uses sound to wake you up – not really the most gentle way of waking someone up. What do we recommend? The sunrise clock – instead of breaking your morning with a bunch of rings that also scares away a good start for your day this clock illuminates the surroundings giving a feel of morning sunrise in the comfort of your own room [yeap rain or shine]. Its build is quite straight forward – time was kept using a real time clock implemented using a STM32F100RB Arm Cortex M3 processor and a ceramic oscillator. Time is displayed using a pair of 8×8 LED matrices. The lamp [the source of light] is controlled using a dimmer circuit composed of an opto-diac and a triac – the opto – diac isolates the microcontroller from the high voltage AC source needed… Continue reading

How small quadrocopter can be?

Arnaud Taffanel, Tobias Antonsson, and Marcus Eliasson have been working on amazing project – a miniature quadrocopter. Its size is as small as 8 cm and weights 20 grams. It uses a PCB as main frame and place for solid electronics like ARM Cortex -M3, couple gyros, 3 axis accelerometer and 2.4GHz radio module. Quadrocopter is powered with 110mAh LiPo battery that came from RC plane. This gives about 4.5 min flight time. Continue reading

Discovering STM32

In hobby world ruled by the 8-bit heavyweights as PICs and AVRs starting with more powerful 32bit microcontrollers can be such a pain. To remedy porting from 8bit to 32bit MCUs such as the kick ass STM32 software developer jmlb put together a walk through on starting with the discovery board with the Keil integrated development environment. This walk through takes you through the process of starting a project, choosing a device, using an example as a template – along the way the directory listings and structure are also explained, it also includes options on the Keil IDE. It also talked starting with the main.c and the STM32 library – this walkthrough is big time in the details. It also has a section for coding for the serial port for an echo operation! It gets getting better! He is making a version of this for GCC – open source baby! Continue reading