User Tools

Site Tools


hstarwiki:cust:gen:chip

This is an old revision of the document!


CHIP

!! See Notes in dropbox for specific implementation

Basic Setup

Default login

User: root p:chip

GPIO on CHIP

Relaxing Natural Bug bot Steps:

  • Testing and documenting should be done at each step
  • Activate GPIO on chip
  • Understand commands for GPIO
  • Understand electrical current
  • Build breadboard circuit (Done)
  • Turn on lights
  • Make script for fading lights (1 for on, one for off)
  • Make script to run at certain times
  • Build physucal structure for setup
  • Create system for alarm variables (web interface)
  • Create App to set alarms and other variables
  • Refine app for visual appeal
  • Create system for adding wifi to chip (maybe bluetooth?)
  • Possible flash chip for lighter config

GPIO Chip Documentation

GPIO is not universal

Different boards have different GPIO pinouts. Make sure you understand this when changing boards. For chip there are baically 2 different versions based on the linux kernal. You can find this by going to /sys/class/gpio:

  • file gpio408 means version 4.3
  • file gpio1016 means version 4.4

In the future you may need to include code to compenstate for the different versions. See the chip GPIO page for more details
In our case, we are in kernal 4.3 so have gpiochip408. So you you add to 408 to corresponding P numbers

  • For XIO-P0 to XIO-P7
  • ex: XIO-P0P7 is gpio415

2017-07-17

  • Followed most of tuturial and could get LED on, but it was not very bright
  • Also, not sure how to do PWM so need to do some more work
hstarwiki/cust/gen/chip.1479753952.txt.gz · Last modified: 2017-03-03 T 17:15 (external edit)