# help in avr programming

**URL:** <https://community.sparkfun.com/t/help-in-avr-programming/19273>\
**Category:** Wireless & IoT\
**Created:** [February 4, 2011, 9:24am UTC](https://community.sparkfun.com/t/help-in-avr-programming/19273 "2011-02-04T09:24:15Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![pranayagarwal](https://avatars.discourse-cdn.com/v4/letter/p/8491ac/32.png) [@pranayagarwal](https://community.sparkfun.com/u/pranayagarwal)\
**Post date:** [February 4, 2011, 9:24am UTC](https://community.sparkfun.com/t/help-in-avr-programming/19273/1 "2011-02-04T09:24:15Z")

</div>

i am making a home automation project

i have to accept input coming from xbee by rs232 serial cable and decode this input and activate corresponding appliance…

we have to submit a prototype for it …we made a uc attached with 8 leds …(tested by program uc by blinking led program)… and i tested tht xbee send me appropriate input(by using bioscom function in windows ) …**now i have to made a program that accept input from RS232 and i will activate the corresponding led to the input (like if A come as input then i have to glow led 1)… i have no idea of avr programming and can u plz help me for making these program …thnks in advance…!!!**

---

<div class="post-metadata">

**Author:** ![stevech](https://avatars.discourse-cdn.com/v4/letter/s/ba8739/32.png) [@stevech](https://community.sparkfun.com/u/stevech)\
**Post date:** [February 4, 2011, 4:42pm UTC](https://community.sparkfun.com/t/help-in-avr-programming/19273/2 "2011-02-04T16:42:01Z")

</div>

how long until the Professor’s requiring this to be complete?

I suggest you look at using Arduino. There are lots of tutorials and examples on that here and on the Arduino web sites.

The XBee uses a 3.3V serial data interface, bi-directional. If this is to connect to an AVR microprocessor rather than to a PC, then you may want to not use an RS232 interface. Don’t confuse RS232 with serial data; RS232 is one standard electrical voltage interface for serial data (UART); 3.3V logic level is another.

---

<div class="post-metadata">

**Author:** ![leon\_heller](https://yyz1.discourse-cdn.com/sparkfun/user_avatar/community.sparkfun.com/leon_heller/32/7602_2.png) [@leon\_heller](https://community.sparkfun.com/u/leon_heller)\
**Post date:** [February 4, 2011, 4:50pm UTC](https://community.sparkfun.com/t/help-in-avr-programming/19273/3 "2011-02-04T16:50:32Z")

</div>

Try AVR Freaks, the people there will tell you what to do with your project.

---

<div class="post-metadata">

**Author:** ![pranayagarwal](https://avatars.discourse-cdn.com/v4/letter/p/8491ac/32.png) [@pranayagarwal](https://community.sparkfun.com/u/pranayagarwal)\
**Post date:** [February 4, 2011, 9:01pm UTC](https://community.sparkfun.com/t/help-in-avr-programming/19273/4 "2011-02-04T21:01:44Z")

</div>

> stevech:  
> how long until the Professor’s requiring this to be complete?
> 
> I suggest you look at using Arduino. There are lots of tutorials and examples on that here and on the Arduino web sites.
> 
> The XBee uses a 3.3V serial data interface, bi-directional. If this is to connect to an AVR microprocessor rather than to a PC, then you may want to not use an RS232 interface. Don’t confuse RS232 with serial data; RS232 is one standard electrical voltage interface for serial data (UART); 3.3V logic level is another.

thanks for helping …!!!

yaah i may direct use it with uc but i have a interface board with xbee …having rs232 interface…so connect tx and rx to max232 ic and with atmega32 …now i want to write a program to just show a prototype till tomorrow evening …!!!

will u help me in coding please …i m getting problem in init of atmega32 spi commmunication…!!!
