2020-10-01, 05:07 AM
(This post was last modified: 2020-10-01, 05:13 AM by CapnKernel.)
(2020-10-01, 12:23 AM)seandepagnier Wrote: but why?
For my autopilot I'm aiming for something about the size of a cigarette pack so I can put it directly at my helm next to the compass. Space on my board is really tight, so I want to put the ATmega directly on the PCB (ie, no nano carrier PCB). This means the ATmega will have no USB.
(2020-10-01, 12:23 AM)seandepagnier Wrote: It's possible to use spi
Great! Looking at hat/arduino.py, avrdude is called with -c linuxspi, and a device of /dev/spidev0.1, so it seems that you've already been programming it over SPI. I can see that reset is GPIO16. But I'm trying to confirm the pins. I had a look in tinypilot_2020_09_30.img.xz to see if there's a special avrdude.conf, but it looks standard. So that means for spidev0.1 it's probably going to be GPIO9, GPIO10 and GPIO11. Do I have it right?
Something I haven't yet found a solution for is level translation. Will an atmega328 work at 3.3V with motor.ino? What will I need to change? Brownout fuses?)