create every day - 福野泰介の一日一創

How to connect Physical Push Buttons to IchigoJam and web

2017/03/29 23:55:00
#IchigoJam #IoT #maker #english 

The physical push button is easy to user for everyone!
Let's connect and use on your IchigoJam.

It's very easy that you can connect 1 push button via 2 wires (GND-IN1).

FORI=0TO100:?IN(1):NEXT

IN1,IN2,IN4 of IchigoJam are pull-uped port, so you can directly connect the wire.
IN3 and OUT1-6 are not pull-uped, so you have to pull-up using about the 10kΩ register each.

This system is for the Sabae Bus.

In this April, bus drivers will manipulate this!
"Bus Realtime OPENDATA System Project with Corprate Fellowship (Code for Japan) at Sabae"

10 FOR I=1 TO 5:OUT I,-1:NEXT 20 C=IN()&`11111011:A=~C&B:B=C 40 ?A 50 GOTO 20

This code is to get timings of pressing.

Let's connect physical to web!

links
- 福井県鯖江市、jig.jp、さくらインターネットが共同開発した「バス乗客リアルタイムオープンデータシステム」を鯖江市の公共バスで運用開始

Tweet
クリエイティブ・コモンズ・ライセンス
この作品は「Creative Commons — CC BY 4.0」の下に提供されています。
CC BY 福野泰介 - Taisuke Fukuno / @taisukef / high-res profile image