RetroBSD

2.11BSD operating system for microcontrollers
It is currently Sat Jun 23, 2018 9:58 am

All times are UTC




Post new topic Reply to topic  [ 5 posts ] 
Author Message
PostPosted: Wed May 13, 2015 5:22 am 
Committer
User avatar

Joined: Wed Oct 10, 2012 11:01 pm
Posts: 1079
Location: Sunnyvale, CA
Hi guys,

I've started a separate project on GitHub with information and examples of using simple sensors and actuators with RetroBSD: https://github.com/sergev/RetroBSD-and-37-Sensor-Kit

You are welcome to join the effort. Examples are intended to be written in C and shell (where applicable).

I use modules from so called 37-in-1 sensor kit, widely available from Amazon, Ebay and AliExpress. We can extend it with other modules as well. Full list of modules: https://github.com/sergev/RetroBSD-and-37-Sensor-Kit/wiki

Image


Top
 Profile  
 
PostPosted: Wed May 13, 2015 8:18 am 
Contributor

Joined: Mon Apr 29, 2013 1:56 am
Posts: 196
I saw it blink, cool! :)


Top
 Profile  
 
PostPosted: Fri May 15, 2015 6:07 am 
Committer
User avatar

Joined: Wed Oct 10, 2012 11:01 pm
Posts: 1079
Location: Sunnyvale, CA
Examples for the sensor kit are now available in /share/examples/sensors directory. Here you can find demos for RGB, two-color, 7-color and infrared LEDs, laser, active and passive buzzers, and relay. Both shell and C variants are present. Gradually I will add more examples.

Code:
# cd /share/examples/sensors
# ls
Makefile        irled.c         led2.c          led3.sh         relay.sh
README.txt      laser.c         led2.sh         led7.c
buzzer.c        laser.sh        led3-portio.sh  pbuzz.c
buzzer.sh       led2-portio.sh  led3.c          relay.c
# make
cc led2.c -o led2
cc led3.c -o led3
cc relay.c -o relay
cc buzzer.c -o buzzer
cc laser.c -o laser
cc pbuzz.c -o pbuzz
cc irled.c -o irled
# _

For details, see:


Top
 Profile  
 
PostPosted: Fri May 15, 2015 6:53 am 
Contributor

Joined: Mon Apr 29, 2013 1:56 am
Posts: 196
Check the URLs. There's an h missing in one http.


Top
 Profile  
 
PostPosted: Fri May 15, 2015 7:01 am 
Committer
User avatar

Joined: Wed Oct 10, 2012 11:01 pm
Posts: 1079
Location: Sunnyvale, CA
Fixed, thank you!


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
cron




Powered by phpBB® Forum Software © phpBB Group

BSD Daemon used with permission