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!

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"

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