diff --git a/README.md b/README.md index 9bb202febe2371090b031cf028ce171f05a92b5e..3264a5f1830b3dcb4bd635ea24ebd8658b5c8fca 100644 --- a/README.md +++ b/README.md @@ -4,12 +4,10 @@ This is a message passing device and USB link for the [automatakit](https://gitl  - - - - 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 diff --git a/embedded/atkrouter/.vs/atkrouter/v14/.atsuo b/embedded/atkrouter/.vs/atkrouter/v14/.atsuo index 6722e957f3d19fcc5e8306848429e3e772a25e32..a72fd51cf12616973f9ee5f10cc31ecfc69e914d 100644 Binary files a/embedded/atkrouter/.vs/atkrouter/v14/.atsuo and b/embedded/atkrouter/.vs/atkrouter/v14/.atsuo differ diff --git a/embedded/atkrouter/atkrouter/atkhandler.c b/embedded/atkrouter/atkrouter/atkhandler.c index e97d17ce068cbdd16b0e95aeb8d19a1cc414ae06..3a69d4ff56a341083efd4bcc5576f93d53238b9e 100644 --- a/embedded/atkrouter/atkrouter/atkhandler.c +++ b/embedded/atkrouter/atkrouter/atkhandler.c @@ -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 ++; diff --git a/embedded/atkrouter/atkrouter/main.c b/embedded/atkrouter/atkrouter/main.c index 8436699e9a406fa3627e225e0f4e20ad05dd54c3..96a8d499a9ea3784de4269c84368f0a708583501 100644 --- a/embedded/atkrouter/atkrouter/main.c +++ b/embedded/atkrouter/atkrouter/main.c @@ -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); } } } diff --git a/images/fab-back.jpg b/images/fab-back.jpg deleted file mode 100644 index 4bca6b411fc564939bac29e657b412a81f80c080..0000000000000000000000000000000000000000 Binary files a/images/fab-back.jpg and /dev/null differ diff --git a/images/fab-front-rpi.jpg b/images/fab-front-rpi.jpg deleted file mode 100644 index 60712b36c114be57735ed235d201f0ab379e7680..0000000000000000000000000000000000000000 Binary files a/images/fab-front-rpi.jpg and /dev/null differ diff --git a/images/fab-front.jpg b/images/fab-front.jpg deleted file mode 100644 index f5f895e5df980850fa19bbfd3623a6eb64bcf5df..0000000000000000000000000000000000000000 Binary files a/images/fab-front.jpg and /dev/null differ