Total Pageviews

Monday, April 20, 2020

Flashing led without delay

   I found another solution to made flashing led without delay than example from arduino IDE
   My solution is to use also millis() function but in other style. Millis() function count time from power up the Arduino (microcontroller)
   I use another variable, to made time from power up in seconds.After that I use rest function (%), for odd number led is on, for even number led is off. For example: 7%2=1 => led on, 8%2=0 => led off.
  You can see a simple mobvie with this style for control a led:
   I wrote 2 simple sketches: blink_wo_delay.ino and blink_wo_delay2.ino with same effects but little changes as commands.

Saturday, April 18, 2020

Consumption measurement for MAX7219 32x8 led display

   For measure the consumption for display made with 4 8x8 led modules drived by MAX7219. I use clock presented in article named ceas animat complex cu date de pe net, whitch use just a development board WeMos D1 Mini and display with 32x8 leds.
   Schematic for a module with 8x8 leds is:
Leds are controlated through muplexing system, so consumption is low.
    First, I removed the display for measure the resistor control for consumption:
I used also a microscope:
Value is 103, so is 10kohmi. You can ckech using an online calculator:
   My display is powered at 3.3V, but I also made measurements at 5V.
   I chose this clock because it can be controlled from a local web page and it's easy to change the intensity.
   We have selected the intensity at 0, the one commonly used at night or when it is cloudy outside and the average consumption is 16mA at 3.3V and 28mA at 5V:
   I selected the intensity at 4, the one commonly used during very bright daytime and the average consumption is 46mA at 3.3V and 66-73mA at 5V:

Friday, April 17, 2020

Bidirectional detection with ultrasonic sensors

   I will made a box with 2 doors and system need to detect movement so I tested a simple system with Arduino board and 2 ultrasonic sensors (HC-SR04).
   I used info from an old project (made a 7 yesrs ago)
   New test schematic is
   My program is bidirectional_detection_ultrasonic.ino and if any sensor detect an object bellow 25cm led is turned on for 3 seconds.
   I made 2 video with this system:

Tuesday, March 17, 2020

i2c LCD1602 drived by STM32F103C

   I wanted to use STM32F103 instead Arduno Mega for a radio with TEF6686 (see details at
   First, I tested classical sketch named i2_scanner but I received no device or error at all adresses beginning with 0x01.
   I search on internet and I found an interesting article STM32 I2C SCANNER. Because informations from there are too much and must read carefully, I change directly Arduino mega with STM32F103. I saw logo info on display and than nothing. I realised STM32 send correctly i2c comands to device, ut not understand messages from any device. LCD1602 (or LCD2004) need just commands, so can be used.
   I tested with LCD1602 powered from external 5V and STM32 board with 3.3V fron USB-FTDI interface or through USB using internal voltage regulator.
   Schematic is as in article from
    I made i2c LCD1602 drived by STM32F103C movie using STM32F103_i2c_LCD1602.ino sketch:

Friday, October 25, 2019

PCB from PCBWay

    A very good solution for you to have a good PCB (board) is to place an order to PCBWay.
   First, you need to made an account on PCBWay site and after that, you can search on PCBway database.
   I order PCB for three projects:
1) AVR Atmega Fusebit Doctor (HVPP)
2) Ardutester
3) Simple VGA/Video adapter
    First project, named  AVR Atmega Fusebit Doctor (HVPP) is an old project for recovery stuck AVR microcontrollers.
   You can read more details about this project in this russian article.
   Fot this project, I received this PCBs:
    Second project project 13 arduino componen tester is based on my article named Ardutester who was wited by me a 4 years ago.
   PCB made are very nice:
   Last project is for Simple VGA/Video adapter 
witch has PCB design.
   My received boards are:

Saturday, July 20, 2019

4116 RAM tester

original article
   I needed a 4116 RAM tester for a vintage computer (ZX Sinclair Issue 2) and I search on internet.

   I find some article:
   My colegue, Dragos, made 4116 RAM tester using a schematic like that,
just he used Arduino Nano instead Arduino Uno:
   You can see their test in 4116 RAM tester with Arduino