mirror of
https://github.com/cosmic-pi-deprecated/cosmicpi-arduino_V1.6.git
synced 2026-05-12 16:09:25 +00:00
Compiles, but doesn't run. Left to do: Fix serial output Verify GPS Verify ADC + HV settings Swap accelerometer library Sort out timers (software for now) Confirm serial output format.
2.1 KiB
2.1 KiB
CosmicPi V1.5 Arduino DUE software
This is the Arduino DUE software running on the CosmicPi V1.5. This software is designed to work in a plug and play fashion, no interaction is required.
Features
- Set up the detector with default values
- Send events from the detector via serial
- Send data from all sensors on the board via serial
- Configure the on board GPS and pipe it's data to serial
Meaning of the LEDs
- Lower LED (green): Power and GPS
- Solid: Power, but no GPS lock
- Blinking: Power and GPS lock
- Upper LED (red): Event
- Flash: An Event has been registered
ToDo before release
- The timer needs a rework, its current implementation is imprecise
- The detector should be able to calibrate it's parameters automatically
- High voltage
- Thresholds
Installation
For regular users of the CosmicPi V1.5 this should be taken care of automatically by the software on the RaspberryPi.
For everybody interested in looking into developing this oneself:
- Download the most recent Arduino IDE: https://www.arduino.cc/en/main/software
- Install the SAM core: https://www.arduino.cc/en/Guide/Cores
- Clone this repository:
git clone https://github.com/CosmicPi/cosmicpi-arduino_V1.5.git(note you can also download the .zip file from the menu above to the right, expand and remember to re-name the directory so cosmpicpi-arduino_v1.5 otherwise Arduino will give you errors) - Open the file
cosmicpi-arduino_V1.5.inowith the Arduino IDE - Connect your CosmicPi to your computer via the USB Programming port
- Select the newly appearing port in the Arduino IDE (Tools -> Port)
- Compile and upload the firmware (Sketch -> Upload)
Usage
As soon as the CosmicPi is connected you can open the software of your choice for monitoring serial data. Open the Arduinos serial port with a baudrate of 19200. This firmware is designed to be a plug and play firmware. It will only send data. It will not accept inputs. What data is sent is defined here.