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

Binary Room Puzzle Game on IchigoJam - Akihabara Moku-Moku-Meeting Report

2017/03/18 23:55:00
#IchigoJam #KidsIT #game #english 

Thank you for participating to Moku-Moku-Meeting at PCN Akihabara Assemblage!

Junior high school girls made the IchigoJam kit!

Let's discovery the programming world!

The first step with CutleryCard! You did it!

The first try to move the servo motor!

8 age kid try the first soldering!

Try to modify Family Computer by Nintendo!

Today's staffs.

This is a puzzle game "Binary Room" result of MokuMoku on my brain.
I like the game "Binary Land" puzzle game 2 game character controlled by 1 player.
Interpose by charaters A and B to get the numbers in ascending order.
Use the cusor key (A is normal movement, B is millor movement).

1 'BINARY ROOM 10 S=1 15 CLS:LC4,0:?"STAGE:";S 20 FOR I=0 TO 15 30 LC8+I,2:?"#":LC8+I,17:?"#" 50 LC8,2+I:?"#":LC23,2+I:?"#" 70 NEXT 80 SRNDS:FOR I=1 TO S*3 90 X=RND(12)+10:Y=RND(12)+4:IF SCR(X,Y) CONT 100 LCX,Y:IF I%3 ?"#" ELSE ?I/3 110 NEXT 120 X=15:Y=16:V=16:W=16:C=1:CLT 125 K=INKEY() 130 A=-(K=28)+(K=29):B=-(K=30)+(K=31) 140 IF SCR(X+A,Y+B)=0 LCX,Y:?CHR$(0):X=X+A:Y=Y+B 150 IF SCR(V-A,W+B)=0 LCV,W:?CHR$(0):V=V-A:W=W+B 160 LCX,Y:?"A":LCV,W:?"B" 165 LC(X+V)/2,(Y+W)/2:IF SCR()-48=C IF Y=W AND ABS(X-V)=2 OR X=V AND ABS(Y-W)=2 ?CHR$(0);:C=C+1:IF C=S+1 LC4,20:?"CLEAR!":WAIT30:IF S=9 END ELSE S=S+1:GOTO 15 170 LC16,0:?"TIME:";TICK()/60:WAIT3:GOTO 125

See you next Moku-Moku-Meeting!

Micro Dot pHAT controlled by IchigoJam I2C

2017/03/12 23:55:00
#IchigoJam #KidsIT #maker #english 

I bought a "Micro Dot pHAT by PIMORONI" showed me at Raspberry Jam by Akkie-san.
IchigoJam can control this also using the adapter board to HAT (Sense HAT).

6 matrix LEDs are controlled by IS31FL3730.
These I2C address are #61/#62/#63. Each IC connects to 2 matrix LEDs difference directions (@A pattern / @B pattern on the following BASIC source code).

1 'MICRO DOT pHAT for IchigoJam BASIC 1.2.1 10 GSB@INIT 20 S=" HELLO! WoT ":M=0 30 FOR P=0 TO 5 40 C=PEEK(S+P+M):GSB@PUTC 50 NEXT:GSB@UPDATE:M=(M+1)%(LEN(S)-5):GOTO 30 60 END 100 @INIT 110 FOR I=#61 TO #63 120 POKE#800,0,`11000:IF I2CW(I,#800,2,#800,0) STOP 130 POKE#800,#D,`1110:IF I2CW(I,#800,2,#800,0) STOP 140 POKE#800,#19,30:IF I2CW(I,#800,2,#800,0) STOP 150 NEXT 160 RTN 200 @PUTC:'P=pos0-5,C=char 210 A=#63-P/2:IF P&1 GSB@A ELSE GSB@B 230 RTN 300 @A 310 FOR I=0 TO 6 320 D=PEEK(C*8+I)>>2:N=0 330 FOR J=0 TO 4 340 N=N+D&1<<(4-J):D=D>>1 350 NEXT 360 POKE#700+I,N 370 NEXT 380 POKE#800,1:IF I2CW(A,#800,1,#700,7) STOP 390 RTN 400 @B 410 FOR I=0 TO 4 420 N=0 430 FOR J=0 TO 6 440 N=N+PEEK(C*8+J)>>(6-I)&1<<J 450 NEXT 460 POKE#700+I,N 470 NEXT 480 POKE#800,#E:IF I2CW(A,#800,1,#700,5) STOP 490 RTN 500 @UPDATE 510 FOR A=#61 TO #63:POKE#700,#C,1:IF I2CW(A,#700,2,#700,0) STOP 520 NEXT:RTN

Try to modify!
First of all, it's very easy to change the message on line 20!

Next I want to try to control "Rainbow HAT" for Android Things by Google!

- the code of Sense HAT
- the code of Micro Dot pHAT
- Rainbow HAT
- Raspberry Pi Boards, Kits, HATs, and Accessories - Next Day Delivery - Pimoroni

Raspberry Pi Sense HAT controlled by IchigoJam I2C

2017/03/11 23:55:00
#IchigoJam #KidsIT #maker #english 

Raspberry Pi Sense HAT used with Astro Pi released!
This board has 64 full color LEDs, a joystick, Gyroscope, Accelerometer, Magnetometer, Temperature, Barometric pressure and Humidity. You can access all devices via I2C.

This is a demo video using the Matrix LED controlled by IchigoJam I2CR/I2CW command.

You can connect just 5 pins (5V, GND, 3.3V, GPIO2:SDA and GPIO3:SCL) *see GPIO on RPi
You have to add external pull up(2-3kΩ to 3.3V) SDA and SCL on IchigoJam.

Program on your IchigoJam

10 FOR I=0 TO 192:POKE#701+I,RND(2):NEXT 20 POKE#700,0:IF I2CW(#46,#700,1,#701,192) STOP 30 GOTO10

I made a board to connect the HAT from IchigoJam.

This program shows IchigoJam characters to the matrix LED by your joystick manipulations!

1 'SenseHAT 10 GOTO300 100 'C:CHR P:COL B:BG 105 P=RND(#FFF)+1:B=RND(2)<<8+RND(2)<<4+RND(2) 110 FOR I=0 TO 7 115 N=PEEK(C*8+I):A=#701+I*24 120 FOR J=0 TO 7 125 D=B:IF 128>>J&N D=P 130 POKEA+J,D&#F 140 POKEA+J+8,D>>4&#F 150 POKEA+J+16,D>>8 160 NEXT 170 NEXT 180 GSB200:RTN 199 'send LED data 200 POKE#700,0:IF I2CW(#46,#700,1,#701,192) STOP 210 RTN 299 'main (joystick) 300 POKE#700,#F2:IF I2CR(#46,#700,1,#700,1) STOP 310 K=PEEK(#700) 320 IF K=2 C=C+1:GSB100 330 IF K=16 C=C-1:GSB100 333 IF K=1 C=ASC("A"):GSB100 334 IF K=4 GOTO 500 336 IF K=8 GOTO 400 340 GOTO 300 399 'demo 400 FOR C=0 TO 223:GSB100:NEXT:CONT 500 FOR I=0 TO 192:POKE#701+I,RND(2)*4:NEXT:GSB200:CONT

I accessed a ID EEPROM written settings also.
Connect GPIO27:ID_SD GPIO28:ID_SC (don't have to pull up) *see doc

5 'header 6 P=12 10 POKE#800,0,0:IF I2CR(#50,#800,2,#802,P) ERR 20 N=[4]:?STR$(#802,3),"N:";N,"len:";[5],[6] 30 'atom 35 FOR I=1 TO N 40 POKE#800,0,P:IF I2CR(#50,#800,2,#802,128) ERR 50 ?"type:";[1],"cnt:";[2],"len:";[3] 60 'vendor info 70 IF [1]=1 L=PEEK(#802+28):?STR$(#802+30,L),STR$(#802+30+L,PEEK(#802+29)) 80 'GPIO map 90 IF [1]=2 ?"drive:";PEEK(#802+8),"power:";PEEK(#803+8):FOR J=0 TO 27:?"GPIO";J;":";PEEK(#804+8+J):NEXT 95 'DT blob 96 IF [1]=3 FOR J=0 TO 100:C=PEEK(#802+8+J):?CHR$(C);:NEXT:? 100 P=P+8+[3]:NEXT

Try another HATs!

- Sense HAT
- Rainbow HAT
- Raspberry Pi Boards, Kits, HATs, and Accessories - Next Day Delivery - Pimoroni
- the code of Micro Dot pHAT

Make your own Signal by IchigoJam with CutleryCard

2017/03/10 23:55:00
#IchigoJam #KidsIT #english 

PCN Mie (PCN三重@ja) will release the traffic signal for IchigoJam.
It's a great material to learn the algorithm!

Very easy to set up, just put in 4 pins (GND, OUT1, OUT2 and OUT3) of the signal.
Type "OUT1" to turn on the green light!


I made CutleryCards for the Signal!

"CutleryCard - Signal pack (Japanese)"

"CutleryCard - Wait pack (Japanese)"

Try make your signal!

Cutlery Card expantion for Kids IoT Hackathon

2017/02/18 23:55:00
#maker #KidsIT #sabae #IchigoJam #english 

Let's control a ¥400 servo motor (SG-90) by IchigoJam to help your mother!

And connect FaBo #103 → IN1, #109 → IN2, #101 → LED

There are Cutlery Card expantion for Kids IoT Hackathon (CutleryCard_ex1.pdf)

Hack with cards!

Make by paper!

Presentation it!

Automatic wash‐line polea rod

Memo to remember items to buy

Vacuum cleaner robo

Automatic dust box

Thank you for your great creations!

- こどもIoTハッカソン (Kids IoT Hackathon)

Have fun with a lot of electronic parts without soldering!

2017/02/16 23:55:00
#maker #IchigoJam #KidsIT #english 

IchigoJam has 7 output pins (using OUT1-6 & LED, maximum 11 pins when IN1-4 change to output).
This is the easiest demo using 7 LED parts without soldering.

It's very easy to connect the LED with female/male jumper wires.

Before warkshop prepare a pin socket connected all pins to extend GND.

Tape for safe.

I found the best way to connect the Photo Transistor with a mini jumper and resistor (10kΩ).
There goods are for KIDS IoT Hackathon!

Let's innovate by Your Home Brew Computer with African kids!

2017/02/13 23:55:00
#KidsIT #PCN #kobe #africa #IchigoJam #english 

I met again Afirican friends! (last year at Kobe)
PCN presented an event to make own PC & programming at KIC (Kobe Institute of Computing).

Starting with "Make Your PC with IchigoJam at KIC" by Hara of PCN.

We are ict4e, NATURAL STYLE,, ithink, SAKURA Internet, applil!

Soldering to make own PC, IchigoJam

You made it!

Next step is programming!

Do you know the computer? Let's enjoy programming!

Line up the cards...

And flip to translate!

Cutlery Card System in English version! (you can download the pdf file)

This is my full presentation with game creation extra session!
Enjoy computing!!

Programming Club Network (PCN) will be more global from Kobe with PCN member of Osaka, Mie and Fukui!

Let's Connect Kids by Programming / PCN KIDS Procon 2016 Winter & PCN Summit 2017

2017/02/12 23:55:00
#KidsIT #PCN #osaka #IchigoJam #english 

Thank you for a lot of paticipations to the Awards ceremony of PCN KIDS Procon 2016 Winter!
We're happy to see making relations among in kids engneers.

They were exchanging them physical address. And they called each other see you next PROCON!

PCN KIDS Procon 2016 Winter is our 6th programming contest by PCN (Programming Club Network).

Programming time with Kids Robot paprika!

Kids played kids programs! (by Scratch, Wii U, IchigoJam, Viscuit, HSP)

Traffic Signal device & program & document by 8 age! (by IchigoJam)

The game machine to repair friendship. If you want to play to hold him/her hand! (by IchigoJam)

Piggy bank with TSUN-DERE faces you by your attitude for savings. (by IchigoJam)

Video: Introducing works nominated.

Video: Examination.

Video: Awards! Congratulations all kids!

Before of the celemony event, We hold our PCN Summit 2017!
This time event was hosted by PCN Osaka.

Title & Slide shutter is programmed by IchigoJam.

10 T=5:WAIT60:LED1 20 PWM2,120 30 IF BTN()=0 CONT 40 LED0 50 PWM2,120 60 WAIT (60*T-10)*60 70 PWM2,140 80 WAIT 60*10 90 PWM2,220 100 IF BTN()=0 CONT 110 GOTO 10

1. preparing a servo (PWM with Servo)
2. typing the servor & a card with hand of the servor on the projector
3. push the button to start your presentation
4. shut your presentation physically after 5 minutes by servo
5. GOTO 3

Programming for all kids!
See you next time!

- PCN KIDS Programming Contest

PCN Summit 2017 pre, Robot making at KYORITSU Craft Space in Osaka

2017/02/11 23:55:00
#KidsIT #js #PCN #osaka #IchigoJam #english 

PCN at Osaka!

Here is KYORITSU Craft Space (共立ものづくり工作室).

Touch & try the IchigoJam!

Find our signs.

It's difficult to design links of robot with legs.

Electric Parts Vending Machine in front of the Kyoritsu shop!

It's time to start to learn the links.

"LinkSim 1" - just beginning... Welcome to KYORITSU Craft Space (共立ものづくり工作室).

PCN Summit 2017 pre!

Mr. BASIC Magizine Ohashi-san said become simpler! So I did.

Next, PCN Summit & PCN KIDS Programming Contest in Osaka!

Let's Compile Your Hand! Real Card Programming for Kids

2017/02/10 23:55:00
#KidsIT #doc #IchigoJam #english 

IchigoJam BASIC is the simplest text programming languages.


"LED" is a command to light up the LED on your IchigoJam.


If you want to light up the LED during 1 second, just series commands.
Q: How do you program to light up the LED twice?

Try think with the real cards as visual (physical?) programming!

There 10 cards are the cutlery card first step edition.
I modified from Jammy Cutlery Card by Nittetsu Hitachi Systems Engineering, Inc (CC BY).

Series the cards...

Flip to complie! (translation from human to computer language is called "compile")

10 LED1 20 WAIT60 30 LED0 40 WAIT180 50 LED1 60 WAIT60 70 LED0

Just type with the line numbers beside to work your IchigoJam!

Try it now!
"CutleryCard_firststep-en.pdf" (Japanese/日本語版)
Cards for 10 copies MEISHI card paper (on Amazon)
Print with actual scale (uncheck the "Auto Scale" and type 100% as the scale ratio)
CC BY Nittetsu Hitachi Systems Engineering (modified by

この作品は「Creative Commons — CC BY 4.0」の下に提供されています。
CC BY 福野泰介 - Taisuke Fukuno / @taisukef / high-res profile image