Commit ccbded2f authored by Jake Read's avatar Jake Read

bring up to date for mw

parent 8edec4b8
......@@ -4,12 +4,10 @@ This is a message passing device and USB link for the [automatakit](https://gitl
![board](/images/atkrouter.jpg)
![board](/images/fab-front.jpg)
![board](/images/fab-back.jpg)
The board includes one USB-to-UART Bridge, a CP2102n, *which is treated as the router's 6th port*.
The board uses a ~ 2A 5V Buck Regulator, and can power / listen to a Raspberry Pi via a few pogo pins.
## Development Notes
See [circuit chatter](/circuit) and [firmware chatter](/embedded).
......@@ -27,35 +25,8 @@ Keycode: **128**
- issues a software microcontroller reset
- if the microcontroller is already hung up, this will not work
# ATKRouter + RPI
We can run atk on a dedicated raspberry pi hooked up to a machine. This is nice, because we can keep machine local state at the machine, and provide a nice machine display / ui / development environment in one spot. Great.
To do so,
### Setup the Raspberry Pi
- [download raspbian](https://www.raspberrypi.org/documentation/installation/installing-images/README.md)
- [flash and boot, setup etc](https://www.raspberrypi.org/documentation/setup/)
### Install Node on the Raspberry Pi
- to install node, download the distro you want from nodejs.org
- extract the files, and hit these commands
navigate to the distribution
`` cd <distro> ``
copy that to local space on the pi
`` sudo cp -R * /usr/local/ ``
to check that node is installed, check the version using
`` node -v ``
which should return the version number of the distro you installed.
# Reproducing This Work
All automatakit works are open source, and while we cannot sell you boards, if you have an interesting application, get in touch to ask about collaborating.
To reproduce boards and load code, see the document ['Reproducing Automatakit Work'](https://gitlab.cba.mit.edu/jakeread/automatakit/reproducing)
\ No newline at end of file
To reproduce boards and load code, see the document ['Reproducing Automatakit Work'](https://gitlab.cba.mit.edu/jakeread/automatakit/reproduction)
\ No newline at end of file
......@@ -30,6 +30,17 @@ void atk_handle_packet(uint8_t *packet, uint8_t length){
case ATK_HANDLER_INSIDE:
switch (packet[i]){
case DELIM_KEY_TEST:
pin_clear(&stlclk);
uint32_t counter = 0;
uint16_t loop = 0;
while(loop < 12){
counter ++;
if(counter > 1200000){
pin_toggle(&stlclk);
loop ++;
counter = 0;
}
}
// see the packet, make sure you're not doing something else with this light
atk_reply_packet(packet, testReply, 4);
i ++;
......
......@@ -190,17 +190,6 @@ int main(void)
tck++;
if(!fastModulo(tck, 4096)){
pin_toggle(&stlclk);
// does it but it don't do it
//uart_sendchar_polled(&up0, 85);
// uart_sendchar_buffered(&up0, 85);
// uint8_t dete[6] = {0,1,2,3,4,5};
// uart_sendchars_buffered(&up0, dete, 6);
//uart_sendchar_polled(&up1, 85);
//uart_sendchar_polled(&up2, 85);
//uart_sendchar_polled(&up3, 85);
//uart_sendchar_polled(&up4, 85);
//uart_sendchar_polled(&up5, 85);
//uart_sendchar_polled(&upU, 85);
}
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment