Archive for the ‘MCU’ Category.

Simple WEB server hosted on NXP/Freescale FRDM K64F demo board

Kinetis K64F demo board is excellent little board for experimenting with ethernet. There is no quick step-by-step tutorial for building simple web server on this board. The following instructions help bringing working HTTP server on FRDM K64F with one index page and second page with simple CGI script to print out some random numbers. This is absolute minimum for developing any web based gadget with this board.

frdm-k64f120m-board-with-bluetooth-and-nrf24l01

(image source: https://mcuoneclipse.com/2014/04/09/ftf-frdm-k64f-kinetis-design-studio-and-kinetis-sdk/ )

What you will need:

  • Compiling tool: Keil development tools
  • Hardware:
  • Good to read: HTTP server demo application
  • LAN cable and spare port on your switch or router

Continue reading ‘Simple WEB server hosted on NXP/Freescale FRDM K64F demo board’ »

STM32F7 Discovery 3D model

I was searching for 3D model of the STM32F7 discovery board (part number STM32F746 discovery) without success. I ended with my own 3D model.

stm32f7 discostm32f7 disco1

>>>Here is the project on GRABCAD<<<

And local copy of STEP file: MB1191B-V14

 

How to program blank STM32F1 with STLINK V2 firmware

Today I found out how to “flash” blank STM32F103xC to make STLINK V2 debugger interface.

So, instead of desoldering from Discovery board to make miniture STLINK debug interface:

a09 - stlink v2 brain desoldered                  a0a - stlink v2 finally assembled usb mini dongle

it’s possible to solder blank (or any) STM32F10x with USB and at least 64k flash + 20k RAM, program it with STLINK V2 Firmware and use your new USB dongle for debugging STM32 or STM8 devices.

Continue reading ‘How to program blank STM32F1 with STLINK V2 firmware’ »

Housing for ST-Link V2 on a single sided DIY PCB

“Quick and dirty” design of the housing for ST-Link V2 on a single sided DIY PCB is available on GrabCad and  __H__E__R__E__

h1 h2 h3 havzing

ST-Link V2 on a single sided DIY PCB

I am using U-Link from Keil for my debugging purposes. Sometimes it is quite bulky. I decided to design STLink V2 on a single-sided PCB in smallest possible size. Here is how it looks:

3d

This is preliminary preview. I will post more details after first testing.

Continue reading ‘ST-Link V2 on a single sided DIY PCB’ »

STM32F070 USB miniature dongle for prototyping

Here is single sided design for prototyping with 20 pin microcontroller STM32F070. This MCU is interesting due to:

  • small size in TSSOP housing
  • low price
  • interesting periphery: ADC, USARTs, timers, USB device!, etc…

Here’s the design. I will post some interesting USB projects in the future based on this board.

stm32f0dongle stm32f0dongle-foto1

Continue reading ‘STM32F070 USB miniature dongle for prototyping’ »

Prototyping with PLL ADF4351

ADF4351 is very interesting PLL chip with many features. Here is prototyping board to start playing around with this interesting chip.

adf4351

Continue reading ‘Prototyping with PLL ADF4351’ »

RGB LED Badge

This is heart shaped four RGB led badge:

Continue reading ‘RGB LED Badge’ »

USB to Alphanumeric LCD interface

This is simple, small interface between USB and alphanumeric LCD with 16×2 characters. It is using CDC class – Virtual COM port.

Microcontroller is from STM32 cortex M0 value line family: STM32F070F6. This small “gizmo” has very attractive price and good choice of peripheral devices, like ADC, USB, plenty of timers, etc… Really nice device in “DIY-friendly” package – TSSOP20.

f0 pcb-asm test

Continue reading ‘USB to Alphanumeric LCD interface’ »

Ultra low cost I2C level shifter

I have some I2C sensors which are capable of running from low supply voltages. Host microcontroller has 3,3 or 5V supply, which is usually out of absolute maximum range, when I2C device is supplied with e.g. 1,8V. The sensor is usually very low power, which means simple emitter follower could do the low voltage supply.

The circuit schematic is shown in following drawing (click to enlarge):

sch

Continue reading ‘Ultra low cost I2C level shifter’ »