# ATmega168 Beginner MCU Help

#### sidjakes

Joined Dec 9, 2011
3
Hey,

I was planning on getting an ATmega168 and starting MCU coding - i've done quite a bit of coding but i have no real hardware experience - so I'm kinda a newbie.

I had a couple of questions :

Firstly, if i get an ATmega168 - can existing circuits be integrated with it ? I mean, can i for example hook up my TV remote ( which incidentally DOES have a PIC in it ) and use my AVR to put the TV on/off ? Can i hook up the remote circuit to the MCU and have it control it - based on some code that i write ? Also, if i get additional sensors - a GPS sensor, an accelerometer - can these be hooked up or is there a special kind of sensor i need to connect to my MCU ? I'm new to circuit design so any help would be appreciated.

Thanks

#### GetDeviceInfo

Joined Jun 7, 2009
2,106
Hey,

I was planning on getting an ATmega168 and starting MCU coding - i've done quite a bit of coding but i have no real hardware experience - so I'm kinda a newbie.

I had a couple of questions :

Firstly, if i get an ATmega168 - can existing circuits be integrated with it ? I mean, can i for example hook up my TV remote ( which incidentally DOES have a PIC in it ) and use my AVR to put the TV on/off ? Can i hook up the remote circuit to the MCU and have it control it - based on some code that i write ? Also, if i get additional sensors - a GPS sensor, an accelerometer - can these be hooked up or is there a special kind of sensor i need to connect to my MCU ? I'm new to circuit design so any help would be appreciated.

Thanks
micro general I/O ports, your Atmega included, have pretty comparable capabilities. Some devices have specialized I/O ports that drive specific loads. Atmel offers an LED capable port with programmable current drive for instance. Add to that onboard peripherals such as timers/comm/etc. Device support in regards to compilers/download tools/etc should be considered. Atmel provides all of these. Ease of attachment should be considered as well. USB bootloaders for example require little overhead for attachment in regards to programming.

Your best bet is to evaluate your load requirements, then confirm your device has the capability to service those loads by reviewing the devices technical documents.

#### hgmjr

Joined Jan 28, 2005
9,027
Hey,

I was planning on getting an ATmega168 and starting MCU coding - i've done quite a bit of coding but i have no real hardware experience - so I'm kinda a newbie.

I had a couple of questions :

Firstly, if i get an ATmega168 - can existing circuits be integrated with it ? I mean, can i for example hook up my TV remote ( which incidentally DOES have a PIC in it ) and use my AVR to put the TV on/off ? Can i hook up the remote circuit to the MCU and have it control it - based on some code that i write ? Also, if i get additional sensors - a GPS sensor, an accelerometer - can these be hooked up or is there a special kind of sensor i need to connect to my MCU ? I'm new to circuit design so any help would be appreciated.

Thanks
Visit www.parallax.com and visit their sensor section. There you will find a sensor almost anything you wish to detect. All of these sensors have been designed to interface any of the microcontrollers that are available.

#### BillO

Joined Nov 24, 2008
990
For all its shortcomings, I'd recommend the Arduino too. That and a little proto-board shield and a sensor shield.

Actually, I love the IDE (software)...

Oh, forgot, but go to www.arduino.cc and www.freeduino.org. As well, search ebay for Arduino...

Last edited: