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

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!

- 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

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!

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

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)

You can write Japanese on your IchigoJam with it!

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

51 IRA-IRA makes 33 new things! Kids IoT Hackathon in Akihabara

2017/04/02 23:55:00
#IchigoJam #KidsIT #hanadojo #english 

Kids IoT Hackathon (こどもIoTハッカソン@ja) #5 in Akihabara Lenovo Japan!

33 kids made original devices for their parent!

Learn programming to get the porwer to create!

Learn electronics making also. They try to connect a servo and FaBo to IchigoJam and manipulate them by the program.

Paper prototyping is very rapid!

Sakura's IoT Platform (さくらのIoT Platform) informs the returning her mother.

Great kid's presentations after just 1 hour making time!

In the end, they reported this event to us.
Good reports and 51 frustrating (IraIra = イライラ@ja) great source to the ideas and innovations.

"こどもIoTハッカソン in 秋葉原(レノボ・ジャパン) イライラ&レポート 2017.4.2"

Thank you all kids!!

Kids IoT Hackathon (こどもIoTハッカソン@ja) by Hana道場
Where is the next city!?

Today's my presentation for you.

- Kids IoT Hackathon #1 at Tokyo (Yahoo! JAPAN)
- Kids IoT Hackathon #2 at Los Angels (MamaBA)
- Kids IoT Hackathon #3 at Sendai
- Kids IoT Hackathon #4 at Sabae
- Kids IoT Hackathon #5 at Akihabara (Lenovo JAPAN)
- レノボ・ジャパンでこどもIoTハッカソン!|きらきら星のつぶやき☆

Typing the Program is same as Swing! 'TENKESU' on BASIC MAGAZINE spring 2017

2017/03/31 21:55:00
#IchigoJam #KidsIT #english 

I started programming when I was 8 years old with typing the program.

I typed "TENSUKE (テンケス@ja) by tOShi" a puzzle game for IchigoJam on the BASIC MAGAZINE. I've made similar one. This game uses short ARM machine language program. There numbers are code to show a charter big.

BASIC MAGAZINE is the famous magazine for program lovers since 1982. It restarted since 2 years on "Elecronics Hobby Magazine (電子工作マガジン@ja)" with IchigoJam BASIC!

It's works!

You can read author's comment of the program. You can remake when you understand it!

Programs were typed by the programmer. It's same as swing of the baseball. It's same as writing characters to learn the language. It's the best way to learn program!

I found a bug of this program. IchigoJam freezes sometime when you filled the field.

?16384*4 0

This is a reason of the bug on the code "J=J*[i]".


This is a code to fix it.

Original program made by 2 programs. I've shorten this program to 1 program 1016byte! Let's try!

GACHA simulation / IchigoJam print

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

Past day kids create games outside.
Now kids just play games created by adults on mobile game machines.

Let's share to kids that creating games is more fun than playing games.

This IchigoJam print introduce the backside of collection games "GACHA".

"ガチャシミュレーション - IchigoJam print" on GitHub

Enjoy creating!

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!

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