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

Count of Bus Passengers Real Time Open Data in Sabae

2017/04/12 23:55:00
#opendata #js #sabae #english 

Have you ever wondered whether the bus is crowded or not?
Sabae city started "Count of Bus Passengers Real Time Open Data System".
"福井県鯖江市、jig.jp、さくらインターネットが共同開発した「バス乗客リアルタイムオープンデータシステム」を鯖江市の公共バスで運用開始"

This is the simple monitor application to look that!

"Tsutsuji-Bus now / つつじバスなう@ja"
see JSON Open Data! links
- Real Time Graph of Bus Passengers using Sabae Open Data
- Deploy to the Bus, "Bus Passengers Realtime Opendata System" will start at Sabae!
- Smart Bus with Corporate Fellowship of Code for Japan in Smart City Sabae

IchigoJam RPi will be showed up on this weekend!

2017/04/11 23:55:00
#ichigojam #KidsIT #rasppi #english 

On this weekend event "I-O DATA FAIR 2017 in Akihabara", IchigoJam RPi will be showed up!
We're prepareing for the workshop to learn how to enjoy programming for kids!

At last IchigoJam runs on Raspberry Pi 3 by Matta of Natural Style!
"RaspberryPi3用 IchigoJam、I-O DATAフェアにて今週末お披露目!起動2秒で走る1.2GHz BASICプログラムでSense HatをHackしよう! – about yrm"

If you want to use the small monitor via the composit cable, you can make it!

This is an earphone with a controller.


Just connect to a composit terminal.
The terminal spec of Raspberry Pi 3 is VIDEO, GND, AUDIO-RIGHT, AUDIO-LEFT (from the root).
* thanks! "Raspberry Pi Model B+のAV端子の変換について - あっきぃ日誌"


You can control "Raspberry Pi Sense HAT" very easily in IchigoJam BASIC!

links
- I-O DATA FAIR 2017 in Akihabara 2017.4.15-16
- IchigoJam meets Raspberry Pi! Mr. Eben Upton's first IchigoJam BASIC program is...
- 起動3秒、Raspberry Pi Zero で動かすIchigoJam(ベアメタル)
- IchigoJam on Raspberry Pi - ラズパイ用のベアメタルOSとしてのIchigoJam

Let's Be Smart Home Creator! Cat IoT with WiFi module "MixJuice" for IchigoJam

2017/04/10 23:55:00
#ichigojam #IoT #maker #neko #english 

If you have own WiFi in the home, using WiFi is one of easy way to create own IoT device. Cheking cat's toilet is first step to look a cat's health! Today I updated its communication device to WiFi.


NekoIoT notices me that a cat go to a toilet.


It's a 450 yen distance sensor same as paprika's eye!
* シャープ測距モジュール GP2Y0A21YK: センサ一般 秋月電子通商 電子部品 ネット通販


MixJuice is the WiFi module for IchigoJam.
Just stack your IchigoJam and set up.

?"MJ APC *ssid* *password* MJ APC *ssid* *password* '................. 'WiFi connected: ***.***.***.*** 'OK

It succeeded to connect the net! And program as below.

1 'NekoIoT ver 1.3 10 W=60*20:D=0:L=200:LED1:?"Connecting..." 15 UART0,0:WAIT W:LED0:?"OK":UART1,1 20 GSB@GET:?A:IF A<=L WAIT10:CONT 32 LED1 36 ?"SEND!":GSB@SEND 40 WAIT 60*10 45 LED0 50 GOTO 20 200 @GET:M=0:S=0:FOR I=0 TO 4:A=ANA(2):S=S+A:IF A>M M=A 210 WAIT5:NEXT 220 A=(S-M)/4:RTN 300 @SEND:?"MJ GET ***.***/***/?v=";A:RTN

* set a URL of your web app! I set up to notice my phone via IFTTT.

Sakura's IoT Platform is easy way to create IoT also and the easiest way to set up! Just be power it on!
"How to blink a LED via web on IchigoJam using Sakura IoT Platform beta"
This is a tutorial to use it.

In 27 April at Tokyo, we will hold an IoT event!
"Ideathon with the first step of IoT and Open Data / IoTとオープンデータはじめのいっぽ&課題解決型アイデアソン"

IchigoJam for PAL TV / making library in IchigoJam BASIC

2017/04/09 23:55:00
#ichigojam #KidsIT #english 

There are 3 TV types in the world, NTSC, PAL and SECAM. (*see NTSC on Wikipedia)
Now IchigoJam supported PAL TV! (from now only NTSC, selected in Japan)

The 4.3inch mini monitor supports both NTSC and PAL.
A little bit smaller than NTSC version and with 50 frames per second.
So "WAIT 50" means 1 second! (NTSC ver: "WAIT 60" is 1 sec)

10 S="PAL" 20 FOR I=0 TO LEN(S)-1 30 X=4+I*8:Y=10:C=ASC(S+I):GSB@PUTCBIG 40 NEXT 20000 END 20010 @PUTCBIG 20020 FOR J=0 TO 7 20030 LC X,Y+J:N=PEEK(C*8+J) 20040 FOR K=0 TO 7 20050 ?CHR$((1<<(7-K)&N)>0); 20060 NEXT 20070 NEXT 20080 RTN

On IchigoJam 1.2 beta 44 firmware, you can hide after 16385 line to make your library.

LIST 10 S="PAL" 20 FOR I=0 TO LEN(S)-1 30 X=4+I*8:Y=10:C=ASC(S+I):GSB@PUTCBIG 40 NEXT OK

If you want to see library, type with name of library and a comma zero.

LIST @PUTCBIG,0 20010 @PUTCBIG 20020 FOR J=0 TO 7 20030 LC X,Y+J:N=PEEK(C*8+J) 20040 FOR K=0 TO 7 20050 ?CHR$((1<<(7-K)&N)>0); 20060 NEXT 20070 NEXT 20080 RTN OK


DMM 4K monitor can display PAL version of IchigoJam also.
You can download this beta firmware Facebook group "IchigoJam-FAN".
Try your PAL TV and report me!

Manipulate 10 Servos on IchigoJam (PCA9685 via I2C)

2017/04/08 23:55:00
#ichigojam #maker #english 

It's very easy to manipulate a servo on IchigoJam.

PWM 2,100:WAIT60:PWM 2,200

2 means OUT2, 100 means 0.1msec. You can control from 50 to 200 to manipulate the servo.

OUT2-5 supports PWM command. So you can connect up to 4 servos. Do you want to more? Yes we can!

Use this the kit using NXP PCA9685. You can connect 16 servos to this unit and control by I2C. Maximum capacity to manipulate is 992 servos using 16 units cause each unit can have a I2C slave address.


It's very easy to connect. Connect 5V/SCL/SDA/GND/VCC to same name pin on IchigoJam. And connect servos as many as you want (up to 16).

1 'servo 16 (for ver 1.2beta43) 10 POKE#700,#10,100,#A1 20 IF I2CW(#40,0,#700,1) STOP 30 A=I2CW(#40,#FE,#701,1) 40 A=I2CW(#40,0,#702,1) 50 CLV:N=10 60 M=400:FOR I=1 TO N:[I*2-1]=M:NEXT:GSB@SVO 65 WAIT 30 67 FOR J=1 TO 2 70 FOR I=1 TO N:[I*2-1]=150+RND(600-150):NEXT:GSB@SVO 80 NEXT 90 GOTO 60 100 @SVO 110 CLS:FOR I=1 TO N:LC 10,I*2:?HEX$(I-1),[I*2-1]:NEXT 120 A=I2CW(#40,6,#800,4*N) 130 WAIT30:RTN

This is demo program to manipulate 10 servos (on the movie).
10-40 set the frequency of PWM (have to stop before setting)
60 reset positions
70 set randam positions
100-130 sub function to manipulate servos and show them number


Try make your original robot!

links
- I2C接続16チャンネル サーボ&PWM駆動キット: 組立キット 秋月電子通商 電子部品 ネット通販 (PCA9685)
- マイクロサーボ9g SG-90: サーボ 秋月電子通商 電子部品 ネット通販 (servo)
- Raspberry Piで10個のサーボモーター動かしてみた: EeePCの軌跡
- 歩行ロボットをつくるにはまずこれ!【サーボ編2】 - いそぷろのブログ
- Overview | Adafruit 16-Channel Servo Driver with Arduino | Adafruit Learning System

Enlarge Your Storage! 1Mbit EEPROM PCB for IchigoJam

2017/04/07 23:55:00
#ichigojam #maker #english 

IchigoJam can storage your 4 programs. If you want to save more, use a chip of EEPROM!
* EEPROM = Electrically Erasable Programmable Read-Only Memory

CN5 of IchigoJam T supports I2C, so I made a EEPROM board!

How to make a EEPROM board on Upverter.

1. Select the EEPROM from the list (A2 is GND or VCC)
"EEPROM for IchigoJam" on Google Docs spread sheet

2. Draw the circuit

3. Design the PCB

4. Order the PCB (Elecrow, FusionPCB, pcbgogo and so on...)

5. Solder the board!

Let's try to make your original EEPROM board!
Easy first step is just forking this!
"1Mbit(microchip) EEPROM cassette for IchigoJam by taisukef 94fa57c5e8a868b1 - Upverter"

Hack the City of Shinjuku with LOD by SPARQL!

2017/04/06 23:55:00
#opendata #js #english 

39 cities have opened them data with LOD (5 star opendata). (*finddata, datalist)
There are 4 types of LOD at Shinjuku-ku, public facilities, public wifis, emergency facilities and culural properties. (公共施設、公衆無線LAN、避難所、文化財@ja)
I updated open source application "AKIJIKAN" to mix cultural properties (URI = http://purl.org/jrrk#CulturalProperty)


AKIJIKAN at Shinjuku DEMO.
Let's find hidden historical place in Big City Shinjuku with AKIJIKAN!

The local councilor at Shinjuku Mr. Yohei Ito made a web application using public WiFi 5-star open data by SPARQL!

"Shinjuku Free WIFIマップ作成。オープンデータ入門は、SPARQLでLinked RDFを操作 | 新宿区議会議員最年少の伊藤陽平"

Shinjuku is a wonderful place cause this city has a councilor who can program web app and talk in SPARQL!

links
- AKIJIKAN (src on GitHub)
- Shinjuku Free WIFIマップ作成。オープンデータ入門は、SPARQLでLinked RDFを操作 | 新宿区議会議員最年少の伊藤陽平

Educational Applications for iPad

2017/04/05 23:55:00
#KidsIT #js #english 

Kids love computers. It spreads them world.

This is a list of educational applications I've made for iPad.

edu apps by fukuno.jig.jp

The latest "kanaroma" is the application to learn Roma-ji. Roma-ji is a standard typing Japanese method on the computer. (* different from the smartphone, the flick input method is standard instead in Japan)

kanaroma
You can write Japanese on your IchigoJam with it!

links
- 小学校で分数は教えるな
- 分数がわかるアプリ
- 勉強とゲームは一緒
- こどもIT体験会

Let's draw graffiti with freepad! / Graphic Recording Seminar for Kids in Hana Dojo

2017/04/04 23:55:00
#hanadojo #js #english 

Graphics Recording Seminar for Kids in Hana Dojo!

Today's teacher is Ms. Tanoue (田上有紗さん).
She graphic-recorded on the event of Kyoto Open Data. "Graphic Recording (グラフィックレコーディング、グラレコ@ja)" is a tool to report with drawn images in real time.


Kids ware trying to draw themselves and present each other!


Programming teacher Mr. Ashida drew this lecture.
We got a little but strong technic to draw pictures to communicate.
Thank you Tanoue-san!

I updated an app to draw graffiti tool "freepad".
You can undo on your smartphone or PC.

Enjoy drawing with relax!

links
- グラレコ講座開催!!: Hana道場

related

Enjoy IoT Hackathon Kit using Sakura's IoT Platform x IchigoJam

2017/04/03 23:55:00
#IchigoJam #IoT #english 

IchigoJam is one of primary partners of Sakura's IoT Platform. We lend 20 Sakura's IoT Platform sets for Hackathon! Yessterday for kids, today for adults!


I prepared 20 Sakura's IoT Platform sets with voltage chaenger for I2C. (see how to make)


Show how to use the bright sensor ad the breadboard.


Connecting the sensor and Sakura's IoT Platform to IchigoJam.


You can get the data and send the data with net on the screen or your smartphone.

I prepared an easy library to use Sakura's IoT Platform.

W=15:GSB@WOUT

Just type this to send a value

GSB@WIN:?W

Just type this to receive a value

10 GSB@WIN:IF W BEEP W,60 20 WAIT 10:GOTO 10

This is the easy pager (ポケベル@ja)!
If IchigoJam get the number just beep a sound.

Write a latest firmware and this program to IchigoJam before hackathon.

699 END:'IoT lib 700 @PWR:POKE#700,2,0:N=3:GSB@I2C:?PEEK(#782):RTN 710 @ACT:POKE#700,1,0:N=3:GSB@I2C:N=PEEK(#782):RTN 720 @GET:POKE#700,#30,0:N=#14:GSB@I2C:N=PEEK(#784):RTN 730 @CHK:POKE#700,#32,0:N=4:GSB@I2C:N=PEEK(#783):RTN 800 @WOUT:POKE#700,#20,10,1,76,W,W>>8,0,0,0,0,0,0:N=2:GSB@I2C:POKE#700,#24,0:N=2:GSB@I2C:RTN 810 @WIN:W=0:GSB@CHK:IF!NRTNELSEGSB@GET:W=PEEK(#784)|PEEK(#785)<<8:RTN 910 @I2C:M=PEEK(#701)+2 920 C=0:FOR I=0 TO M-1:C=C^PEEK(#700+I):NEXT:POKE#700+M,C 930 IFI2CR(79,#700,M+1,#780,N+1)'STOP 940 C=0:FORI=0TON-1:M=PEEK(#780+I):C=C^M:NEXT 950 IFC!=PEEK(#780+N)ORPEEK(#780)!=1'STOP 960 RTN

Let's hack with IoT!

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