Post Created date
Do not set the U2X to 1 for double speed asynchronous.  Keep the UART at single speed asynch.    To test if this is causing the problem, change the baud rate of the...
Friday, 6 March 2020 - 21:09
What is the best way to write a program
For the AVR the best approach to the beginning of writing a program is to go to Google on the web and type "Arduino" then either the name of the most significant electronic...
Thursday, 5 March 2020 - 20:32
Please recommend IDE for atmega microcontroller
I use the Arduino IDE for .ino files only.  I assume that is the source browser as .ino is the main part of Arduino source code and it can be used as a text editor.  ...
Wednesday, 4 March 2020 - 17:46
PS2 Keyboard
None of the 10+ PS2 keyboards that I have tried would work at 3.3v.   All needed +5.0V.
Wednesday, 4 March 2020 - 17:27
Reading data from Flash vs Ram
I recommend using a table of string addresses in flash, along with the strings themselves.  For example: const char String00[] PROGMEM = "first command"; const char String01...
Wednesday, 4 March 2020 - 14:35
ATXMega not receiving MIDI out from MIDI controller
The 6N138 is most likely causing your problems, especially if the resistor on the opto-iso output (to Vcc) is greater than 300 ohms.   MIDI was designed for the Sharp PC900,...
Tuesday, 3 March 2020 - 22:37
Please recommend IDE for atmega microcontroller
Hello,  welcome to the world of embedded system development.   If you are using the Atmel AVR ATMega328P as a microcontroller, then by far the best IDE is the Arduino...
Tuesday, 3 March 2020 - 22:20
I2C humidity sensors
Why does the interface have to be I2C?   Is it because there are absolutely no pins available besides adding another device on to the I2C bus?   Or is it...
Tuesday, 3 March 2020 - 22:05
ATXMega not receiving MIDI out from MIDI controller
I recommend a different approach.  Test each incoming MIDI byte to see if it completes a MIDI message. If so, then process the message. Otherwise store the MIDI byte and...
Monday, 2 March 2020 - 16:33
Solved: MIDI code for ATmega32
You can use the standard UART on the Mega32 for MIDI out.  The baud rate is 31250, which is non-standard (i.e. not 9600, 19200, etc...).   Connect pin 5 of the MIDI...
Tuesday, 25 February 2020 - 01:45
need help in reading IR sensor information
Most IR devices for common applications like a television remote use one of several standard protocols for the button matrix.   I'm going to assume that if you are doing AVR...
Saturday, 22 February 2020 - 23:34
Try putting a common signal silicon diode like the 1n4148 on the contrast pin.  Put the anode on the contrast pin and the cathode to ground.  This forces the contrast...
Saturday, 22 February 2020 - 23:16