Post Created date
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
how can make twoway communication Rx Tx uart between 2 atmega?
If I stand on the roof of a ten-story building, and start the CodeVision USART code at my feet, then with good binoculars I can see the end of the code. If I do something sensible...
Friday, 10 April 2020 - 15:26
C code for micro servo sg90
Why do all the schools insist on using Studio instead of Arduino?   Arduino makes the hardware easy so that the programmer can concentrate on the application, not the...
Tuesday, 7 April 2020 - 00:18
atmega324PA not working at higher than 1MHZ freq
When you programmed the high fuse to 0xD9, you turned off the SPIEN fuse.  This is the configuration switch that allows the AVR CPU to be programmed through the SPI pins [...
Sunday, 5 April 2020 - 22:02
ADS115 Datasheet
I don't think that the flowchart is correct at the very bottom.  It is my understanding that the Slave will always acknowledge with an assertion (the line gets pulled low to...
Sunday, 5 April 2020 - 13:47
Strange Problems with MEGA.
The PC is sending more data than the Arduino Mega can store in its internal SRAM.  If the application sketch needs to have random access to all 3744 bytes then you will need...
Saturday, 4 April 2020 - 19:00
Simple Uart Process
In the UART transmit flowchart, check "Is TXC set?" before WriteChar().   The UART transmitter is a shift register with a single byte register of storage:UDR.  When...
Saturday, 4 April 2020 - 18:47

Pages