Using GR-SAKURA to solve a challenge at home
If I put GR-SAKURA to good use...
Hi there! I’m Tomomi Kitamura (@tomomi_ktmr). I’m the mother of two daughters aged 6 and 10. Until seven years ago, I made robots and electronic gadgets, but decided to take a break when I became pregnant with my younger daughter. I also toyed around with Arduino at the time.
Responding to the recent advent of IoT and my own itch to make something, I got my hands on GR-SAKURA which, when used with an Arduino-like board, turns into an amazing combination that comes network-connected and ready to read any SD card!! (I look back on a time when it was difficult just to mount products.) This set was introduced at an IoT study meeting (called IoT LT) sponsored by Softbank.
Solving a problem which vexed my daughter
To make best use of my effort, I tried to think of something helpful to construct. My younger daughter, who had entered first grade, often forgot to give me letters and handouts from school.
I had gone through the same problem with my older daughter. I was determined not to repeat the same unfortunate cycle of angry mother and crying daughter, so I set about using GR-SAKURA to create a gadget to help my younger daughter enjoy giving me handouts she had brought home from school.
To ensure that my daughter would actual deliver the school notices she brought home, I decided to create a gadget producing a fun reward — involving movement and sound — when a handout was inserted into the slot.
Keeping it simple
I used a simple mechanism to design the gadget so that when it sensed that a piece of paper had been deposited, the servomotor would be activated to produce a sound. I was hoping to keep it basic enough so that my older daughter (aged 10) would understand the mechanism as well.
I used an optical sensor (CdS sensor) as my detection mechanism; when a letter was deposited, the sensor would detect darkness and recognize that a threshold had been reached.
As far as the sound was concerned, I knew that today’s kids would never be satisfied with a mere beep. Since the GR-SAKURA came with SD capability, I recorded both music and a voice message, and programmed it to the SD. Actually, I recorded my older daughter playing the piano and my younger daughter (the daughter with the school note issue!) saying a message. I involved both daughters in the production process, including them from the stage likely to provide maximum enjoyment and interest on their part.
Network function resolves Mom’s issue
The thing is, I discovered that I was actually not aware when a letter had been deposited… That called for an additional “mail notification” mechanism to counter overlooked or forgotten mail. We installed a new mechanism that changed the color of our dining room lighting.
We created “otegami” (“letter” in Japanese), a gadget guaranteeing delivery of school letters and handouts at home. When a handout was placed in a clear tray, it activated a sound as well as a flag movement. That prompted an e-mail to me and changed the color of the dining room lights to red. As expected, I noticed the red lighting. We made a short video of the trial run.
*CdS cell 30 yen
(Akizuki Denshi Tsusho Co., Ltd. http://akizukidenshi.com/catalog/g/gI-00110/)
*Resistor １０kΩ approximately 1 yen
(Akizuki Denshi Tsusho Co., Ltd. http://akizukidenshi.com/catalog/g/gR-25103/)
*Piezoelectric speaker 50 yen
(Akizuki Denshi Tsusho Co., Ltd. http://akizukidenshi.com/catalog/g/gP-01251/)
*Servomotor E-SKY EK02 0500 about 400 yen
*Clear tray (Daiso Industries Co., Ltd.) 100 yen
*Spacer (M2.6 hexagonal screw) for attaching GR-SAKURA
(Akizuki Denshi Tsusho Co., Ltd. http://akizukidenshi.com/catalog/goods/search.aspx?keyword=M2.6&maker=myg&goods=&number=&name=&min_price=&max_price=&last_sdt=&sort=&style=T&search.x=0&search.y=0)
(Akizuki Denshi Tsusho Co., Ltd. http://akizukidenshi.com/catalog/g/gP-07324/)
*Breadboard jumper cord (pliable jumper wire)
(Akizuki Denshi Tsusho Co., Ltd. http://akizukidenshi.com/catalog/g/gC-05159/)
*MicroSD 2GB about 700 yen
*Philips hue Philips LED smart lighting system (lighting changes via a wireless system)
We soldered each sensor directly with the pliable jumper cord, then attached the sensors to the GR-SAKURA. Take care to not overheat the sensors while soldering.
The clear tray is heat-sensitive, so use a soldering iron to melt holes in the tray, cleanly finishing the holes off with a screwdriver, and then attach the GR-SAKURA to the tray with the spacers. There happens to be a slit in the reverse side of the clear tray, enabling SD card retrieval at any time. The remaining parts are relatively light, and can be attached by double-sided tape, cute masking tape, or hot glue.
Attach to clear tray
Here is the sketch I made. It is not entirely correct to say that I made it, as I simply modified an existing template (GR-SAKURA_MP3_WAV_V2.07.zip) for data retrieval from SD to the mp3 wav to determine the CdS sensor level, activate the servomotor, and add IFTTT (e-mail notification and lighting control). An added function allowed me to push a button on the reverse of the gadget to reset the system after the gadget sensed arrival of a letter and notified me.
IFTTT is very handy!
IFTTT allows Web services such as Facebook, Twitter, and e-mail to be linked. It can be set up using a Web application (http://ifttt.com). There are many services facilitating such links, one of which is MakerChannel, which works to link Arduino. I used it to dispatch e-mail, etc. from Arduino via IFTTT.
I used the following references to create this gadget.
- No 5V output during the initial stage.
Use the pink-hued GR-SAKURA microprocessor and LED to create a breathalyzer for your next cherry blossom outing! http://liginc.co.jp/264119
- How to use a CdS sensor
#5 Try using optic sensor for Arduino data entry! http://deviceplus.jp/hobby/entry_005/
- Serial communication using Web compiler with GR-SAKURA
Gadget Renesas Community: how to use and apply SAKURA (see bottom of page) http://japan.renesasrulz.com/gr_user_forum_japanese/b/weblog2/archive/2015/07/05/sakura.aspxn
- How to use a servomotor
SAKURA sketch reference → servomotor http://gadget.renesas.com/ja/reference/sakura/library_servo.html
- How to use SD to view wav and mp3
Web compiler template: GR-SAKURA_MP3_WAV_V2.07.zip
- How to use IFTTT
Web compiler template: GR-SAKURA_IFTTT_V2.03.zip
Renesas MVP ProfileTomomi Kitamura
Occupation: web development and operation/maintenance, and IT adviser
Until 6 years ago, Kitamura was a robot hobbyist (HN: “miu mama”) who contributed to ROBOCON, an online robotics magazine. She used her second pregnancy as an opportunity to explore electronics as a hobby.
In recent years, she has assisted the Information and Communication Technology Rescue Team, an NPO supporting the disabled, and has refocused her attention on robotics as her older daughter (aged 10) has gained an interest in that area.
She continues to study IT and IoT which are easily accessible to all.
Technical notes and journal: Mom, robotics, and occasionally childrearing
Information and Communication Technology Rescue Team (NPO)