Let's Make Robots!

atmega

Building a new controller - fun and games

OddBot's picture

Friday 27th January, 2012
This blog is a an ongoing list of my thoughts, as I attempts to create a library for the Micro Magician. It is boring and should not be read by anyone :p

 

As some of you may already know, I am designing a new Arduino compatible controller for small robots. One problem with small robots is limited space. This makes sheilds, motor controllers and wires difficult to fit. For this reason I tried to incorporate a few useful devices onto a controller while keeping the cost low.

atmega32 INT2

djhesit8's picture

Hi...

 

I have an atmega 32... I want to use all of the 3 interrupts... I got problems with INT2...

 

I set it up as a falling edge and via a 10K resistor put the button to ground...

 

while(bit_is_set(PINB, PB2));

_delay_ms(5000);

//init interupt

GICR |= (1<<INT0) | (1<<INT1) | (<<INT2);

sei();

 

 

 

the problem is that after the while... when the interrupts are initialized... the pull-up drops out...

Eliminates the opponent inside the Nano-Sumo ring
Using a
  This is our Nano-Sumo robot. I say "our" because it is a team effort between Patrick McCabe and myself. Here is the link to Patrick's Electronics post. We talked … Read more
UPDATE - 8. sept. 2010 - first h-bridge and controller board done.--- This is part of my biggest robot project ... It has enough degrees of freedom (5+gripper), … Read more
Question :- what on earth is  New Mega improved Mr.Tidy doing in Switzerland ?............ ..... To cut a long story short .....OddBot  has done it … Read more
Hi guys, this is my current project, i thought the programming would be easy, but since i havent used my arduino for months, it's not going so well, lol. Well … Read more

Peculiar ldr problem...

amando96's picture

Hi, well got my robot to follow light, to see if everything was working fine, but the weird thing is, instead of changing direction in real time, it only changes direction when i reset my arduino board, same thing happens if i watch the serial monitor.

 

for example

 

it prints out 500 to the serial monitor

keeps printing 500, even if i change the light source.

Programming an atmega with the Arduino IDE

CaptainTuna's picture

Hi guys.

from this post (http://letsmakerobots.com/node/5593 ) by Rudolph i learned that you can program an atmega with the arudino IDE even if you haven't got an arduino board.

What i have here with me now is an atmega328, a serial programmer (precisely this one: http://www.sparkfun.com/commerce/product_info.php?products_id=14 ).

Atmega + camera.

Weirdo's picture

I have thought about atmega + camera idea too, but for use on atmega not sending. I looked at CMUcam but it wasn't so low-cost as it was advertised (100$ it too much). I found http://www.robotshop.us/sfe-cmos-camera-640-480.html . It seems cheap, microcontroller friendly and so on. Only problems are - SMD connections, killer programming and impossible debuging.

 

So, all thoughts and good links are welcome.

Line follower on changing contrast

ChiP's picture

I am making a line follower using an ATmega8

Now the problem is the testing of line follower, there is a black line over a white surface and then after a while, there is a white line over a black surface....

The robot will make a start on any of the corners...so it is  impossible to tell whether it is a white line or black line...and also in middle, the contrast will change...

I have to make the program in such a way that it will detect the change in contrast and continue its work

I thot this can be done in programming part..so posted here...

Line Follower using Atmega8

ChiP's picture

Hi all, I am new here and about to make a debut in robotics with a simple line follower robot.

I have chose AVR ATmega8 as my microcontroller because I found out that we can chose which pins we want as input and which ones as output. So this seems pretty cool for a microcontroller. Also i figured out that it is cheaply available here.

ubuntu & atmega

Weirdo's picture

So my pickit2 kept failing, even with only pic in circiut. FinallyI got fed up of pics and windows. I deleted windows, moved to ubuntu, took out mu usbasp and atmega88. Tried to get pickit analyser (like computer oscilloscope) working on linux but it seems impossible, so I have to use windows computer for that. I also found out that linux + pic programming = big no no.

 

DIY CNC router project

ezekiel181's picture

04/06 Update

Motors and driver chips arrived in a package with some stuff for other projects today. Can`t find much information about the motors online and they have some marks on the body but they should work great. I`ll breadboard a circuit up to test the motors later.

 P1000780-500.jpg

I need to learn Arduino yesterday!

OddBot's picture

G'day everyone. I have been asked to do some consultancy work for DAGU electronics and need to learn the atmega processors ASAP. I can design the hardware ok but will need some help with the software. My first concern is can an Arduino control 8 servos?

I want to try and have the polymorph caterpillar running off of an Arduino processor in a week ! :0

After a quick panic, I regained my senses and did a site search. Ok an Arduino can control 8 servos but I will still need help.

Any suggestions on on software libraries? Can anyone translate picaxe basic into C? 

Embedded video: 

Line follower "GOOFY"

GuntisK's picture

This is my very first line following robot that is built around ATMEGA8. Construction and circuit are quite simple. Such a name- GOOFY is given because robot movements are somewhat clumsy. But hey! Its still working and doing his job very well! :)

1.jpg

There is two geared DC motors that are controlled using PWM. Tyres are the ones that are used in RC cars. Besides-these have a nifty looking. 

Embedded video: