treepour

Member Since: June 1, 2009

Country: United States

  • Tutorial - Beginning Embedded Electronics - 4 | about 5 years ago

    So like many folks, I don’t have a serial port. It would really be nice, BTW, to add some tips/hints for those without serial ports to these tutorials …
    Anyhow, I’ve gotten this far using the USBTinyISP programmer, but now I’m stumped. It seems I should be able to use the FTDI USB/Serial/TTL cable I use to communicate with Arduino, but I can’t seem to get it working … do I still need the MAX232 circuit? Do I need something different?

  • Tutorial - Beginning Embedded Electronics - 2 | about 5 years ago

    Sounds like something is going wrong with the Makefile. I’m not all that familiar with Makefiles, but it looks like it can’t find a directory/file called .dep/blink_1MHz.o.d – does the file actually exist (it should be created by the make process itself)?

  • Tutorial - Beginning Embedded Electronics - 2 | about 5 years ago

    Oh, also, if you’re using the USBtinyISP, you need to use the following in your Makefile:
    AVRDUDE_PROGRAMMER = usbtiny
    Not sure what you’d need to set your port to on a PC, but on a Mac, this works:
    AVRDUDE_PORT = usb

  • Tutorial - Beginning Embedded Electronics - 2 | about 5 years ago

    For those asking about the USBtinyISP, YES, IT DOES WORK! That LED is blinking as I type! :)
    I used the 6 pin connector so I could avoid the 4 ground wires. You’ll need to reference this schematic on ladyada’s site to figure out which pin is which: http://www.ladyada.net/images/usbtinyisp/usbtinyisp2sch.png
    The VCC (pin 2) and GND (pin 6) pins are on the same side that as the ribbon. So:
    pin 1: MISO
    pin 2: VCC
    pin 3: SCK
    pin 4: MOSI
    pin 5: RST
    pin 6: GND
    It’s very easy to get confused at this step – I had to double-check and rewire many times. Also, make sure you’re using the ATmega168 pinout schematic to see where the corresponding chip pins are located – the schematics for the older chip show the pins in different locations. So, on the ATmega168 chip:
    MISO: pin 18
    VCC: pins 7
    SCK: pin 19
    MOSI: pin 17
    RST: pin 1
    GND: pin 8
    You also need to hook up pin 20 to your breadboard VCC and pin 22 to your breadboard GND.

No public wish lists :(