Let's Make Robots!

AVR

Comming to grips with arduino, bootloaders & ISP...

kariloy's picture

Here's the deal, I'm building my first robot & I have an Arduino One board, but I've realized that the board is too pretty for me to use up in my current (and first) project and besides it would be a waste.

My first thought was:

Well, maybe I can pull out the ATmel chip on the board and stick a blank one there, upload the desired code there, take it out and follow some breaduino tutorial to build around it.

Peeked here

http://arduino.cc/en/Tutorial/ArduinoToBreadboard

and...

mikroC vs BASCOM AVR

A few days ago I was going to try some programming in C using mikroC. So far I have been able to blink a LED...  mikroC is primarily designed to support the circuit boards MikroElectronica makes and does very little for the Arduino (and they plan on keeping it like that). It is still a great (but expensive!) C, just not one for the Arduino.

Cable used to program standalone AVR (Arduino) chips (ATMEGA328p)
  This weekend I made me a "cable" to program my ATMEGA328p chips the Arduino way. As usual by design goal is to use what I have rather than buy a solution, in … Read more
Follows a black road with the help of path identifiers in this case-- white strips
Materials required .. MANY.... Give me time to list it even I forgot to make a list and brought the part as they were needed.  And I have some what became … Read more

Universal AVR ISP

BiohazardRoboIndustries's picture

Hi to all, I'm quite new to AVR MCUs and I have the chips (ATmega32 16PU), but no programmer.

I'm obsessed by the word "universal", because I don't wanna buy a programmer every time I'm working with a different chip, so the question is: which is the really universal ISP for AVRs, possibly with USB connector?

Thx in advance ;-)

It is controlled trough IR commands
Using a
Hi all, This is it! As I got a fully (more or less) functional CNC (see here: http://letsmakerobots.com/node/24217), I can finally start doing what I have intended … Read more

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...

I finally made it: Got my weather station up and running. Well, actually it's been running for about two weeks now but I've been too lazy to post it and I've been … Read more
Let's face it, I've been a total slacker when it comes to building robots (I can hear the distant voice of fritsl mumbling something about never finishing my robot … Read more
jip's picture

Battle Droids

sgix's picture

Hi!

Just found some interesting game where the avr is the "robot", connected to the PC and therefore the internet. There you can fight against other players robot and level up and so on. Or you can modify your actual hardware and increase your game-stats.

http://battledroids.net/default.html

It's in alpha-state but i like the idea!

 

wfg, sgix

Drive around via infrared
Using a
Because all robot kits cost enormous amounts of money I started to develop cheap and small robot – Kobold. Small because smaller components are cheaper, sensors … Read more
Keeps chess games short and interesting by limiting each turn, alerting the user with a buzzer before time runs out.
This is a simple chess timer using a 20 pin AVR microcontroller.  It has up/down buttons on the front for adjusting the countdown time and an arcade button on top … Read more
Plays wave files from a AVR based MCU with very little external hardware!
Using a
Last year I wanted to add sound to a bot so I wrote a program that plays wave files.  I later rewrote it so that it would be completely interrupt driven so that I … Read more

Weather station project, the beginning

nuumio's picture

I've been thinking about making a weather station for a while. My goal is to have it running when I go for a two week trip at the end of the year so I can check how cold it is back here in Finland :-) To put it simply, the idea is this (the usual weather station stuff I think):

Hi again! She is back up, almost useful now. Now with video ... =>                   And the result of the video:                       (yes … Read more

Beware of floating ADC inputs. They may play tricks on you

nuumio's picture

Last night I was building my next bot, Hammer, and I got to the point where I had all the electronics more or less completed and some mechanics done too. With some help from my dear friend hot glue I managed to build a shaky test platform. I hoped I could test Sharp IR distance sensor and motors. Maybe even do some simple navigation stuff. Here are a couple of pictures how Hammer looks like right now.


Front

A more powerful and versatile AVR library
Hey guys, I wanted to bring a video tutorial I created to the attention of LMR. The video is a walkthrough on how to use a software tool to setup a project using … Read more
Hey guys, (Full disclosure) I work for Trossen Robotics, and this is a prototype for an upcoming product we're making. But- I think it's a pretty cool bot, so I … Read more
Displays a message on move
Oh I forgot to tell some word about it...   Upper there are 2 link... I used the schematic and the miniPOV.exe program for codeing.... Better said just copied the … Read more

Attiny 3 channel servo controller

Weirdo's picture
So, i'm too lazy to make tip or whateva so i just upload the video, code and text.
Embedded video: 
Geir's RGB night light was such an inspiration I just had to make my own.  Instead of Picaxes I decided to use ATTiny 2313. At first I tried to program it with C … Read more

First experiences of AvrUsb500 v2 programmer

nuumio's picture

Last week I got this avrUSB500v2 programmer kit from tuxgraphics.org. The kit has all the needed components except the ATMega8 chip. You have to purchase that separately. Here are the kit's components and ATMega8:

Note that FTDI smd-chip is conveniently already soldered to PCB.

AVR C is hard!

kitsu.eb's picture

Well, last week I got several packages of parts with lots of sets of ten. I got ten 8pin sockets, ten CR2032 batteries and ten battery holders, and most importantly ten attiny85 MCUs. I figure I can use this set of parts for a bunch of small projects, but my first project is to make a tiny bot! I've already got some tiny pager motors, and some ir emitters I can use as light sensors.

AVR Interrupt Question

Hi all, here is my dilema:

I am attempting to fashion my own rotary encoder to detect wheel rotation speeds.  My approach is to use a disc with a slotted pattern cut into it and a photo interrupter.

This is the photo interrupter I have on hand: http://www.sparkfun.com/datasheets/Components/GP1A57HRJ00F.pdf 

Why the need for pulldown resistors in some cases and not others? TeleFox?[solved I guess... mystery remains though]

TinHead's picture

Hi all,

This may be stupid but I need to understand.

The problem:

We have two microcontrollers:

1 Arduino based on ATMega168

1 ATTiny2313. 

Link three pins of your choice between them, for example

Arduino                     Tiny

9                 -            PB5

10                            PB7

11                            PD3

We want the tiny to respond to low/high states on the Arduino pins.

Bricked! ATTINY2313 Repair with HV Rescue Shield

John_NY's picture

Summary

This blog post contains my build of a "HV Rescue Shield" by MightyOhm.  The High-Voltage Rescue Shield is a high-voltage programming shield that fits on an Arduino.  The Rescue Shield works on 28-pin ATMEGA ICs and on 20-pin ATTINY2313 ICs.  My use/instructions for now only concern resetting the LFUSE (clock fuse) so that the IC can be used with a 16MHz crystal.

Introduction

I bricked my $3 µC IC on my first attempt at programming.  Recently I found some DIY AVR HV programmers that could be made from stuff in my lab.

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 ).