About the machine language on IchigoJam, you cant't find how to divide (除算/割り算@ja) on the Arm Cortex-M0 command table. It's right. Arm Cortex-M0 has no commands of division. Instead you can use the function to divide.

IchigoJam BASIC command "USR" pass an address of function to divide as the register R3 after IchigoJam 1.2b31. (IchigoJam-FAN to download the latest version 1.2b45)

asm: R1=3 → 00100 001 [num]
asm: GOTO R3 → 010001110 [R3] 000
BASIC: PRINT 100 / 3 → 33

If you want to use the number as remainder (R1), call it!

[0]=`00100 001<<8 + 3 [1]=`1011010 100000000 [2]=`010001111 0011 000 [3]=`0100011000 001 000 [4]=`1011110 100000000 ?USR(#800,100) 1

asm: R1=3 → 00100 001 [num]
asm: PUSH {LR} → 1011010 100000000
asm: GOSUB R3 → 010001111 [R3] 000
asm: R0=R1 → 0100011000 [R1] [R0]
asm: POP {PC} → 1011110 100000000
BASIC: PRINT 100 % 3 → 1

Enjoy programming with the simple machine language!

links
- Cortex-M0 Armマシン語表(抜粋)
-
はじめてのマシン語 - IchigoJamではじめるArmマシン語その1
- IchigoJam-FAN on Facebook

Open Data Asia the first event at Shinjuku NHN Techorus.


Part 1: The first step of IoT and programming with IchigoJam x sakura.io

Challenge the first step of IoT with IchigoJam x sakura.io.



Heart LED board with IoT!
This is library for IchigoJam x sakura.io

20600 'IoT lib 20610 END 20700 @PWR:POKE#700,2,0:N=3:GSB@I2C:?PEEK(#782):RTN 20710 @ACT:POKE#700,1,0:N=3:GSB@I2C:N=PEEK(#782):RTN 20720 @GET:POKE#700,#30,0:N=#14:GSB@I2C:N=PEEK(#784):RTN 20730 @CHK:POKE#700,#32,0:N=4:GSB@I2C:N=PEEK(#783):RTN 20800 @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 20810 @WIN:W=0:GSB@CHK:IF!NRTNELSEGSB@GET:W=PEEK(#784)|PEEK(#785)<<8:RTN 20910 @I2C:M=PEEK(#701)+2 20920 C=0:FOR I=0 TO M-1:C=C^PEEK(#700+I):NEXT:POKE#700+M,C 20930 IFI2CR(79,#700,M+1,#780,N+1)'STOP 20940 C=0:FORI=0TON-1:M=PEEK(#780+I):C=C^M:NEXT 20950 IFC!=PEEK(#780+N)ORPEEK(#780)!=1'STOP 20960 RTN

Part 2: IoT and Open Data ideathon!

Past day there are no standards to connect the power, so the vacume machine connected to the light socket!


We will aim the 5 star open data.


This is load map of IMI.go.jp (vocaburary for 5 star open data from Japan).


Let's enjoy our ideathon with ISAKAYA STYLE.


The slide with 7 ideas!


The prize "Let's create!" to the stress communicater team!


The wearable girl with neoplug x VUFINE+!


Thank you to participate! See you next time!


Thank you NHN Techorus!

links
- また新宿区内でオープンデータ×IoTイベントやります! | 新宿区議会議員最年少の伊藤陽平
- オープンデータ、IoTも活用し、データシティ新宿の実現へ | 新宿区議会議員最年少の伊藤陽平

Glass Wearable needs 3 points.
point 1: confortable
point 2: not heavy
point 3: looks good

"neoplug" solved point 1.
"Raspberry Pi Zero" solved point 2.
To improve point 3, I added attechment for it.

neoplug Vertical Attachment for Raspberry Pi (data on Thingverse)


It modeled by Blender, the open source 3D modeling application.


After 20 min printing, you can screw to your RPi Zero and just slide to attach with neoplug!

links
- neoplug
- neoplug on Forbes Japan

To share the programming skill for all of the Kids, PCN started trials at Fukui Kosen.
I updated the first step of IchigoJam with Cutlery Card.


"Cutlery Field" to put some cards.
(download here "CutleryCard_firststep1-front-ja-rev3.pdf")


I added "IF BTN()" and "GOTO1" to learn 'loop' and 'judge' in computer.


They are 44 candidates of Kids Programming Mentor! (2nd grade of EI, Fukui Kosen)


They built own IchigoJam computers!
It's just beginning! Let's enjoy computing with both hardwares and softwares!

links
- こどもプログラミング教材 Jammy! Programming.KIDS - 日鉄日立システムエンジニアリング株式会社 (original version)
- Let's Compile Your Hand! Real Card Programming for Kids

I've started to prepare an event of marathon at Sabae with the neoplug glass.

This is the first prototype of running indicator "speedmeter".
I was able to run with time, my speed, time, odometer and accuracy of GPS (now 5m is the best condition)!


I found a busstop in front of Fukui-KOSEN.
Next time I'll try to catch the bus to return to home!

Electronic making is kind of handicraft. Girls like it also! (ギャル電@ja)

I found a cute kit, so I modified to be more. You can display as pink color using BASIC program to control blue and red 2 color LEDs it has.


This kit includes "Happy Birthday" music IC but didn't use. Keep it another objects.


* red 'x' not use!


connect 5 wires to IchigoJam (* you can select front or back on new ver.)

IchigoJamcolorHeart LED
OUT2 (CN4)yellowR2 bottom
OUT3 (CN4)blueR3 bottom
GND (CN5)blackDC -
5V (CN5)redDC +
SOUND (CN3)greenVT3 top


program it!

10 PWM 2,RND(30) 20 PWM 3,RND(10) 30 BEEP RND(20)+10,5 40 WAIT30 50 GOTO 10

Let's make your own elecronic accessories!

links
- ハート18LED&メロディキット - aitendo (new ver.)
- ハート18LED&メロディキット - aitendo (old ver.)

I tested iPhone x neoplug. We need lighter one. So next I attached Raspbery Pi Zero on the other side of glasses.

How cute! (*I ordered shorter screws)


You can wear Raspberry Pi and small display! (*I need the smaller battery)


Using neoplug, it's very easy to attach and detach the attachment 3D printed!


I installed IchigoJam RPi to Raspberry Pi Zero. So this is a wearable BASIC machine also!


It likes a game on your real life!

10 CLS:?"TIME:";T 20 WAIT60:T=T+1:GOTO10 SAVE0

Let's enjoy programming your life in BASIC!


By the way I enjoyed small NES with neoplug x VUFINE+. (*without sounds)


There are things I mistaken. Failure is a source of success!


You can download this attachment STL data for 3D printers on Thingverse.
"attachment for neoplug x Raspberry Pi Zero by taisukef - Thingiverse"

The first model of neoplug the wearable adapter for glasses was arrived! In the beginning I tested with simple clock and stopwatch applications.

This is a composite image with simple clock app "clkbottom".
photo: the Ichigo event of NUAGE


You can snap the VUFINE+ to the glasses with neoplug adapter. You can see the front clearly and you can see the translucent time in the bottom of your sight.


This is an another composite image with stop watch app "stopwatch".
photo: the Ichigo event of NUAGE


VUFINE+ is the just wearable display so iPhone, Android, PC, Raspberry Pi and game machines any devices can connect it with HDMI. It's very fun to create the future lifestyles with smart glasses!

links
- 【鯖江~世界標準】ウェアラブルデバイスの新着脱機構“ネオプラグ”付メガネ - FAAVOさばえ
- Vufine | Wearable Displays, Simplified.
- 腕時計を過去のものに!電脳めがねによる眼鏡時計 (2011)

IchigoJam web updated to simulate 7-segment LED.

IchigoJam web by WebAssembly *7seg on right top!
IchigoJam web connects a 7-seg LED on HTML through shared memory on WebAssembly.


"LED(7seg) by PCN Kanazawa / LED(7セグ) by PCN金沢@ja"
7-segment LED is one of very popular electronics parts to build devices.

You can control the 7seg LED very easy.

OUT1,1

"OUT1,1" to light up a top of LED. OUT1-7 connects each LEDs.

OUT127

127 means 1111111(binary). So all 7 LEDs lighted up.


"Janken using 7seg LED"

This is the dice program.

10 LET[0],6,91,79,102,109,125 20 OUT[RND(6)]

This is the count down progrom.

10 LET[0],63,6,91,79,102,109,125,39,127,111 20 FOR I=9 TO 0 STEP -1:OUT[I]:WAIT60:NEXT


Let's make it!

Sabae city (Fukui prefecture, Japan) start 2017 fiscal year with 58 new business plans!
"平成29年度当初予算の概要 – めがねのまちさばえ 鯖江市"

"Sabae Businesses and Budgets / 鯖江市 平成29年度当初予算(主な事業) めがねのまちさばえ 世界飛翔元年"
(using CSV opendata)

I picked up some interesting plans.
- 英語に親しむ活動事業 810万円 (enjoy English)
- 鯖浦線防犯プロジェクト事業 800万円
- 公共用地ポケットパーク整備事業 600万円
- 大人ファーストさばえ眼鏡 600万円
- めがねのまちさばえから日本の未来が見えてくる事業 300万円
- ググれるまちサバエ事業 200万円 (googleability)
- プログラミング教育推進事業 182万円 (programming)
- 鯖江市役所JK課オリジナルメガネSOUZOU 100万円
- 若者による地域活性化推進事業 80万円
- サバエ×ワカモノ夢創造大学事業 80万円
- アジア建築学生国際サマーワークショップ支援事業費 80万円
- クリエイティブ教育都市事業 70万円 (creative education)
- DPDPドローンパイロット養成事業 70万円 (drone pilot)
- 「新しい公共」起業家支援事業 65万円 (Startup Intelligence in Sabae!?)
- サバヌシ総会事業(仮称) 35万円
- 国立情報学研究所との相互連携事業 30万円
- アプリコンテスト開催事業 20万円 (App contest)
- ご当地マンホールPR事業 4万円
主な事業合計 101事業 11億429万円

How about you?
Enjoy living your city!

links
- 平成29年度当初予算の概要 – めがねのまちさばえ 鯖江市
- 若者だもの・ 福野あおい 鯖江市議 — 鯖江市が京セラドームをジャックします
- 実感できるオープンガバメントへ | OpenGovLab

Tweet
クリエイティブ・コモンズ・ライセンス
この作品は「Creative Commons — CC BY 4.0」の下に提供されています。
CC BY / @taisukef / アイコン画像 / プロフィール画像 / RSS