Post Created date
CD4026 based timer clock - how to reset the clock at startup and on demand
In my humble opinion, this entire concept for a working clock is wrong.  While yes it is possible to make a clock with these parts, it must be accepted that this is a...
Saturday, 18 April 2020 - 16:39
ATtiny4 External Interrupt Help
This is the strangest code that I've seen in a while.   I've never seen a microcontroller being run at 512Hz clock speed.  Nor have I ever seen either a while(1)...
Friday, 17 April 2020 - 12:30
Connect ATmega32A with magnetic card reader DB9
This card reader appears to use the two 6-pin headers (one male, one female/ type:PS2) for power only and the DB9 female connector for RS232 data to the PC.     ...
Wednesday, 15 April 2020 - 18:18
ArduinoRS485.h
I can not find a reference to anything called a ATMEGA328U-7H using Google Search.  The ATmega328P-AU is the tiny quad flat pack version of the common mega328P processor....
Wednesday, 15 April 2020 - 17:27
AVR Studio 4 crashes when "start debugging"
Well, that is a weird program.  It does nothing but initialize two registers.  Have you tried any other program like a blinker?:    while (1) { turn on LED,...
Wednesday, 15 April 2020 - 17:07
Atmega32 PWM tone generation
The PWM channel uses the duty cycle of the pulse and a capacitor to create a discrete analog voltage level.   An analog waveform gets created by changing the PWM duty...
Monday, 13 April 2020 - 14:36
Converting basic servo code from C code to Arduino
Try taking the while(1) {} out of the loop() function.    Make the offset a define statement.    #define OFFSET 600   void loop() {    set...
Sunday, 12 April 2020 - 23:31
Push button latch
Push buttons are surprisingly difficult to write code for.  They "bounce" on the milli-Second level when pressed or released. The CPU is fast enough to treat each of these on...
Sunday, 12 April 2020 - 14:10
how can make twoway communication Rx Tx uart between 2 atmega?
   I don't need to start my own school because the only real school that people need to go to in order to learn modern embedded-system programming doesn't exist as a...
Saturday, 11 April 2020 - 19:34
[Help] The PWM output on OC2A is controlled by the data value written to the OCR2A register.
Remove all the references to a LM35 or a Light_dependent resistor.  The "code spec" just says "control an LED's brightness using PWM".  It doesn't say anything about...
Saturday, 11 April 2020 - 18:51
how can make twoway communication Rx Tx uart between 2 atmega?
I recommend that you use the One-Wire temperature sensor  DS18B20 instead of the LM35.  You can string eight of the DS18B20 sensors together over a good distance and...
Friday, 10 April 2020 - 22:24
RGB LED Matrix ?
Do something sensible and use 64 WD2812b NeoPixel programmable LED chip modules.  They will all string together.   It takes about 27 microseconds to send the RGB...
Friday, 10 April 2020 - 15:43

Pages