This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Connections between RPi and nano for flashing
#3
(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.pyavrdude 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?)
Reply


Messages In This Thread
RE: Connections between RPi and nano for flashing - by CapnKernel - 2020-10-01, 05:07 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)