https://github.com/tuanlh/contikisimpletrafficlight
An example simple traffic light in Contiki-OS
https://github.com/tuanlh/contikisimpletrafficlight
contiki contiki-os cooja mote telosb traffic-light
Last synced: 8 months ago
JSON representation
An example simple traffic light in Contiki-OS
- Host: GitHub
- URL: https://github.com/tuanlh/contikisimpletrafficlight
- Owner: tuanlh
- License: mit
- Created: 2018-12-18T14:45:21.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2018-12-29T16:31:02.000Z (almost 7 years ago)
- Last Synced: 2025-02-14T15:15:49.859Z (10 months ago)
- Topics: contiki, contiki-os, cooja, mote, telosb, traffic-light
- Language: C
- Size: 8.79 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# This is an example simple traffic light based on blink led and rime broadcast on Contiki-OS
# Requirement:
- ContikiOS 2.6 Instant
- 2 Telosb (mote Sky)
# How to use
## Simulation with Cooja
Import file `simpletrafficlight.csc` into Cooja
## Upload to Telosb
### Step 1. Plug in Telosb into Computer through USB port
### Step 2. Chmod device
```
$ sudo chmod 666 /dev/ttyUSB0
```
**ttyUSB0** can replace with **ttyUSB1**, **ttyUSB2**,...
Tips: to view list mote, you can type:
```make motelist```
### Step 3. Create a folder simpletrafficlight in ~/contiki/examples and put all code within
### Step 4. On Telosb 1 (master) upload master.c
```
$ make TARGET=sky master.upload
```
### Step 5. On Telosb 2 (slave) upload slave.c
```
$ make TARGET=sky slave.upload
```
# Author: Le Hoang Tuan