Hello Tom,
This is a great project! And as an amateur astronomer I am trying to make it work for me.
I am trying to build my own AstroEQ from the shared project on gitlab.
I have the PCB and all the components soldered on it.
Now I have an issue when burning the bootloader from gitlib project.
1. I am using Arduino IDE v1.8.5
2. as a programmer I am using Arduino Mega2560.
On the mega the ICSP pins are 50,51,52,53 (instead of 10,11,12,13 on the UNO), Vcc, Gnd
In order to program the AstroEq with the bootloader I programmed the Arduino Mega with the example project ArduinoISP that is to make the arduino a programmer. The example is given for Arduino UNO, so I replaced the digital pin definitions in the code to correspond to 50-53.
From an old arduino forum thread I have read your discussion from year 2012, so I made the adjustments on the Arduino
This is the thread:
https://forum.arduino.cc/index.php?topic=104693.0Here in the boards.txt I have added your properties + one more:
atmega162.bootloader.tool=avrdudeand corrected the high fuses to be:
0xDC nstead of
0xD8So the extra part in boards.txt looks like:
##############################################################
atmega162.name= ATmega162
atmega162.upload.protocol=arduino
atmega162.upload.maximum_size=14336
atmega162.upload.speed=57600
atmega162.bootloader.tool=avrdude
atmega162.bootloader.low_fuses=0xFF
atmega162.bootloader.high_fuses=0xDC
# atmega162.bootloader.high_fuses=0xD8
atmega162.bootloader.extended_fuses=0xFB
atmega162.bootloader.path=optiboot
atmega162.bootloader.file=optiboot_atmega162.hex
atmega162.bootloader.unlock_bits=0x3F
atmega162.bootloader.lock_bits=0x0F
atmega162.build.mcu=atmega162
atmega162.build.f_cpu=16000000L
atmega162.build.core=arduino
atmega162.build.variant=atmega162
##############################################################
I have added the
pins_arduino.h to the folder you described and also replaced the
iom162.h file.
As a result I have in Arduino IDE ATmega162 as an option,
I try to burn the bootloader , arduino IDE actually burns it successfully , it takes a few seconds to do it, the arduino leds blink and the AstroEQ status led blinks several times while burning process. Status in IDE is success.
When I try to connect the AstroEQ to the computer via USB - there is nobody there. Windows does not detect the controller and no led blinks at all. Nothing in device manager.
Any help will be appreciated.
Thank you.