-
Notifications
You must be signed in to change notification settings - Fork 28
Circuit Sword FAQ
kiteretro edited this page Mar 2, 2021
·
21 revisions
Click ⯈ to expand
Turn the power switch "OFF" then press the "mode" button
- Enable SSH and check that the Circuit Sword is connected to Wi-Fi then log in to the Raspberry Pi Compute Module 3 Lite using SSH
- Run the command
cd Circuit-Swordthen run the commandsudo ./update.sh
Insert your Circuit Sword SD card into a PC then create a file called wpa_supplicant.conf using “Notepad++” that contains the text below (insert your own country, ssid and psk)
country=US
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1
network={
ssid="My Network Name"
psk="mypassword"
key_mgmt=WPA-PSK
}Note that this will hide the icon until the battery reaches 20%, when it will then be shown
- Enable SSH and check that the Circuit Sword is connected to Wi-Fi then log in to the Raspberry Pi Compute Module 3 Lite using SSH
- Open the file
/lib/systemd/system/cs-hud.serviceby running the commandsudo nano /lib/systemd/system/cs-hud.servicethen change
ExecStart=/home/pi/Circuit-Sword/cs-hud/cs-hud
to
ExecStart=/home/pi/Circuit-Sword/cs-hud/cs-hud -s
- Press
CTRLandXthen pressENTERto save - Run the command
sudo reboot
- Plug in the alternative Add-on board then plug in the volume wheel’s 3-pin cable
- Enable SSH and check that the Circuit Sword is connected to Wi-Fi then log in to the Raspberry Pi Compute Module 3 Lite using SSH
- Run the command
sudo service cs-hud stopthen run the commandpython Circuit-Sword/cs-configure.py - Press
8then pressENTER - Press
ENTERagain then check that the command output readsAnalog volume enabled: 1 - Press
Xthen pressENTER - Run the command
sudo service cs-hud start
- Solder a 'navigation switch' (example) to the main board (under where the battery connector is)
- Enable SSH and check that the Circuit Sword is connected to Wi-Fi then log in to the Raspberry Pi Compute Module 3 Lite using SSH
- Run the command
sudo service cs-hud stopthen run the commandpython Circuit-Sword/cs-configure.py - Press
9then pressENTER - Press
ENTERagain then check that the command output readsDigital rocker enabled: 1 - Press
Xthen pressENTER - Run the command
sudo service cs-hud start
- If you have the 'NEW' 640x480 LCD (the one that does not require an FPC adapter to fit) and the Circuit Sword hardware version is less than
1.3Dyou will need to perform a software update and then update to the microcontroller. If it is version1.3Dor above, no update is required.
Note that if you are using the 'OLD' 640x480 LCD you should NOT update the microcontroller. If you accidentally do that, you must go back to software version v1.3.2 and follow the update microcontroller steps.
2. Solder a bridge between the solder pads labelled below (optional, this increases the backlight brightness)
- Insert your Circuit Sword SD card into a PC then open the file
config.txtusing "Notepad++". Add and remove#as follows
# Enable 320x240 custom display mode
#framebuffer_width=320
#framebuffer_height=240
#display_rotate=2
#dpi_output_format=24597
#hdmi_timings=320 1 20 30 38 240 1 4 3 10 0 0 0 60 0 9600000 1
# Enable NEW 640x480 custom display mode (LCD without adapter required)
framebuffer_width=640
framebuffer_height=480
display_rotate=2
dpi_output_format=516117
hdmi_timings=640 1 32 48 88 480 1 13 3 32 0 0 0 60 0 32000000 1- Enable SSH and check that the Circuit Sword is connected to Wi-Fi then log in to the Raspberry Pi Compute Module 3 Lite using SSH
- Run the command
sudo service cs-hud stopthen run the commandpython Circuit-Sword/cs-configure.py - Press
1then pressENTER. Slowly rotate the joystick(s) until calibration is complete - Press
ENTERthen check that the command output readsJOY 1 enabled: 1 - Press
Xthen pressENTER - Run the command
sudo service cs-hud start
Use the solder pads labelled below (circuit diagram provided)
- Enable SSH and check that the Circuit Sword is connected to Wi-Fi then log in to the Raspberry Pi Compute Module 3 Lite using SSH
- Run the command
sudo service cs-hud stopthen run the commandcd Circuit-Sword - Run the command
sudo ./flash-arduino.sh - Run the command
sudo reboot
- Plug a USB keyboard into the Circuit Sword
- Press the
F4key - Run the command
sudo cp /var/log/messages /boot/messages.txt - Run the command
sudo cp /var/log/syslog /boot/syslog.txt - Power off the Circuit Sword
- Insert the SD card into a PC and collect the
messages.txtandsyslog.txtlog files
Check out the support forum or e-mail [email protected]