Skip navigation
2015
Yes I am an udergraduate Engineering student and have been busy with my pre-final year exams, which were keeping me barred to progress in this design challenge. I waited a long to tinker with my new kits and finally I can start now. I have planned on journey ahead in Enchanted Wardrobe and will document the whole build in number of blog post.   1) Taking Yun to the cloud and talk to Yahoo Weather API using Temboo. 2) Parseing the XML response from Yahoo to extract the useful required inform ...
I want to control windows using arduino.I got Tinkerkit servo in competition kit.But I just found another good solution,I found a 10 RPM 12 V DC geared which has pretty nice torque.So,need to make decision between this two.What are your suggestions?     ...
coolbox

Working with yun

Posted by coolbox May 31, 2015
Hello friends   I was trying to getting started with arduino yun.I was able go get it on my laptop's wi-fi.Then I tried to re-configure it using 192.168.240.1 because arduino.local was not working.After re-configuring it showed that arduino is being restarted.But I cannot find it in my wi-fi panel after restart is it normally happen or arduino will connect my assigned network.   Regards, parth ...
Not that I can play an mp3 file, let's find a way to build a simple TTS speech As we live in a connected world, why not leveraging the power out there on the web to overtake hardware limitations?   I found an interesting site here http://tts-api.com/   that provides a text-to-speech web service   To convert a text programmatically from NodeJS, the URL to invoke is the following one   var mp3url='http://tts-api.com/tts.mp3?q='+encodeURIComponent(text);   Given this url, ...
After finishing the data acquisition part of the project, let's see how to make the MagicHat a little more... magic   To make Arduino Yun speak, I first need an external USB audio card like this one here     Then, I need to install an mp3 player that will play a file stored on SD card. Installing the mp3 player is just a few packages away...   opkg update opkg install kmod-sound-core opkg install kmod-usb-audio opkg install madplay   Since the control logic runs ...
Hans also found the "pretty-wifi-info.lua" script for checking the Yún's WiFi status, it nicely abstracted Hans code from the hardware so he wrote a wrapper for that rather than writing his own. He used the "parse" module to interpret the output. That installed nicely on the Yún for a change.   pip install parse   To avoid key errors he defaulted all of the common values to be "unknown". # Get the Wifi Status into a dictionary import subprocess from parse import * d ...
  No electronics in today's post. Just a few pictures of the work on the sub-chassis. I'm avoiding to drill holes in the nice turntable coffer. I'm crafting a light carton base that nicely fits inside the turntable. The material I use is from my son's school project. He's building an architectural model of a house.     Building the sub-chassis  It's just the fancy name for a piece of carton. As prototype I used part of a pizza box.     I made that fit using ...
crjeder

Planing the Final Spurt

Posted by crjeder May 27, 2015
Inspired by jancumps post 1958 Turntable from the Black Forest - 21: Right-Sizing my Plans I decided to plan the last 5 weeks of the challenge and look back on what I've achieved.   Looking Back  The features I've promised are: No user interaction necessary besides hanging the keys Make key status available on-line RGB-LEDs to display status of the absent persons RESTful / IFTTT  / Tasker (android) interface Additional, optional features I have proposed: Record speech mess ...
This is my first SAMA5D4 firmware that takes a reasonable sample of audio range signals. I'm using the ADC buffer mechanism. The converter fills the buffer in the background. I'm reading the values and log them. Later I'll use them to drive the light organ of the enchanted table.       What's Happening in the Firmware?  I'm doing exactly the same as what's documented on IioAdcDriver < Linux4SAM < TWiki. But in C++. You can find the instructions back in the code. ...
Good morning Ricksville  One morning Farmer Hogg woke up, looked out the window and checked the colour of his field.He headed down to the kitchen and turned on his internet radio, Rick Astley was playing so he turned it off again. Old Mother Hubbard turned on her computer to check her inventory management system. A Rick Astley video was playing, she liked Rick so left it playing and forgot what she was about to do. At the top of the stairs, around the back of the town hall, the man from t ...
So this weekend the genie buckled down, determined to finish the project he had started. His heart was delighted to see that he had finally finished all the wiring to his house! Now all that need to be done was furnishing and some aesthetics! #include <TimeAlarms.h> #include <infineonrgb.h> #include <Wire.h> #include <Time.h> #include <stdlib.h> InfineonRGB LEDS; void setup() {      // put your setup code here, to run once:    ...
I'm now at the point in the project where I can match what I have with what I can.     I overestimated my skills when I announced that I would try to integrate a Shazam-like service into my player. Or more honest: I didn't overestimate. I set this a s a goal to force myself to reach as far as I could. At that time, I expected that I'd be faster to adapt embedded  Linux. Based on no particular evidence, I predicted for @self that I'd be on track with that technology fast.  ...
The week was full of rain and clouds for the poor genie all week. Unable to leave his house and make any progress on the things that needed to get done, due to the unfortunate consequences of doing your electrical work in the rain, but today the sun peeked out from behind the clouds and shone with the brightness of 2000-2500 lumen. It was magnificent! However, shortly after its arrival, the clouds took over again . But while the sun was out the genie made headway on his electrical wiring of his ...
I don't know if it was already there for a longer time, or that I missed it before, Yesterday and today I found significant new and interesting content for our SAMA5D4 board.     The content is available from the Linux4SAM home page, and from the side menu. There's a step-by-step explanation on loading a bootloader and binary to the board, including screen captures. And there's a new release of the Linux demos, 4.7. I've installed that yesterday and the Linux distro works flawless ...
I'm trying the Buffer and Hardware Trigger  capabilities of the SAMA5D4. I follow the instructions of http://www.at91.com/linux4sam/bin/view/Linux4SAM/IioAdcDriver.   In Part 1, I enabled the hardware trigger from the linux prompt. In this post, I'm testing the buffer with the test tool generic_buffer.   Building the Test Tool  generic_buffer is available as c source. There's a number of them available in different versions on the internet, but not all compile for this bo ...
Just spotted this, it's the Yún but in a smaller form factor.   http://arduino.org/products/arduino-yun-mini   Also spotted it's by the Arduino.org team not the Arduino.cc team if you care about such things. ...
I finally succeeded in measuring blood pressure in an almost reliable way. In this post I will show the results of my experiments   In order to determine the law between the value returned by the Force Sensor Resistor and the blood pressure, I run some comparison tests. Basically, I measured my real blood pressure with a normal home medical device (see picture) and associate the readings of the medical devices with the corresponding ADC reading of the FSR. I made a test on myself (I have a ...
Putting the Arduino Yun to sleep  Hans and Matilda thought back to the Golem and how he slept between each activity, that could also work for their Yún.    The key things were:   Turning the Linino power off Turning the Linino power back on Low power on the ATMega side Waking back up. Timers and servo.   Poweroff is not enough  The Linino O/S uses BusyBox for a lot of the tasks of it's shell. One of these is the "poweroff" command. http://www.busybo ...
I'm trying the Buffer and Hardware Trigger  capabilities of the SAMA5D4. I followed the instructions on IioAdcDriver < Linux4SAM < TWiki, but was struggling with one particular command. I raised a topic on tha at91.com forum. And resolved it myself. Sometimes writing down your problem leads to the solution.   Instructible  You can read my topic on the at91 site to see where I was in trouble.  (jc: At the time of posting this blog, I didn't know yet that I would get t ...
  I've mastered the SAMA5D4 just in time for chapter 3 closure. The end of a chapter is the right time to look back and reflect.   The world is unfair for people that don't know. I have this powerful board in my hands. And I can't get anything usable out of it. I struggle tremendously and blog (some may say whine) about that. Then magic happens. The first program compiles. That first program runs. The board says 'hello'. Having a working program speeds things up. Finally, you can c ...
  Now that I have my SAMA5D4 development chain under control, it's time to do something with it. My first attempt is to move the Genuino sketch made for my light organ to the SAMA5D4. The design has 4 main steps: sampling, applying a Hamming window function, performing a FFT, drive leds   Moving C++ code from one environment to another is straightforward. In essence, the only thing I had to do is switch out the Arduino analogread() and digitalwrite() functions for the SAMA5D4 count ...
C.Defeo's Decorating and Building Merchants  Hans and Matilda wanted some sheet metal to build the battery box so popped down to C.Defeo's Decorating and Building Merchants for supplies. The shop keeper advised them that he only had large sheets but he'd cut them for free. He lead Hans and Matilda to the yard out back where the massive sheets of stainless steel were stacked. Hans and Matilda looked up at the sheets and could not work out how the shop keeper was going to move them. He pulled ...
I held off my review for more than a month. I have read the specs and was quite impressed. Then I reviewed the SAMA5D4 Xplained Ultra Evaluation Kit USER GUIDE. And I had mixed feelings after that. Hardware wise, this is a great document. Software wise, it's not good.     ScoringProduct Performed to Expectations: 10 Specifications were sufficient to design with: 10 Demo Software was of good quality: yes, but hard to find and apply Demo was easy to use: No Support materials wer ...
I'm making steady progress on this drizzly day. I have my first C++ linux program running that samples the an ADC pin on the SAMA4D4 Xplained Ultra Board.   In the mid 90's, I was a C++ software developer. Around that same time, the standard template library (STL) came into fashion. It's great to use it once again.     Getting the ADC values  Once again, this is inspired by peteroakes's work on this board, SAMA5D4 Xplained Ultra - Tips and Tricks #2 - Using the built in ...
    My lab doesn't have a wired network. And that makes it difficult to develop on the SAMA5D4 Xplained Ultra board. The only way I am able to move compiled binaries from my Windows development machine to the board is via SCP. But that meant that I have to connect the board to the wired network in my living room.   In this post you can read my successful work to enable file transfer over the USB connection. I can now transfer my programs to the board in my lab. No need to tak ...
... way down south. I avoid blogging about my job. I'm making an exception for this one time because it's going to impact the challenge: I just came to know that I'll be off to Johannesburg, South Africa, for a work assignment soon. That means that I'll be without lab for most of the time.   I'm excited about the assignment and the work location. The impact to this project here is unknown. In any case, the job comes first.   Tomorrow Never Knows. ...
I'm continuing with the scope creep exercise. As a preparation to make my Analog Shield talk to the SAMA5D4, I've been testing the on-board ADC functionality. I've also measured the AC and DC signal path from signal source to ADC chip in.     The Digilent / Texas Instruments Analog Shield ADC circuit   Our converter is the Texas Instruments ADS8343 16-Bit, 4-Channel Serial Output Sampling Analog-To-Digital Converter.   The signal goes through 2 opamps before entering th ...
As mentioned in a previous installment Hans was having some trouble installing the secure version of the requests module for python, it didn't matter what he tried there always seemed to be something that needed a different version of a tool installing or a script that did not want to run correctly. So Hans took some steps back and wrote the code to get the weather instead.   Thinking about the reason for using requests in the first place it was to make the code simpler, however the functi ...
In this post we will have a look  at how the client side of the web application is implemented For the web client I used the Angular JS framework and the graphical components made by Telerik. This components are not free (I have a licence since I used those components at work, but they can be easily replaced with free and/or open source components)   The most interesting part is how the web socket is created and how data is processed to update the web page. The web socket is created ...
I've mentioned before that we are not the only ones determined to enchant some objects.   Simon Morris has made floating lightbulbs powered by induction.     via: http://makezine.com/2015/05/03/making-lightbulbs-float/ ...
crjeder

Next Road Block

Posted by crjeder May 13, 2015
I've identified an other road block: The RGB LED Lighting Shield uses 10-bit I2C addresses! I found a good explanation here. Should not be a big problem but standard tools as i2cdetect only work with 7-bit addresses. Let's how it works. ...
    Scope creep. It's the dead of every single project. Still I let it seep into my design. Because I received something that I enjoy spending time on.     And yes. The date is wrong in the picture above. One of my kids has already removed May 13 to read the joke on the backside..         The Digilent / Texas Instruments Analog Shield  Loads of fun to be had! This educational board has analog goodies on it. And since my (not really mine) turntable ...
So the genie decided that it would be fun to start learning how to use new tools and build things instead of tiring himself out with using all of his magic. He hopped out of his cramped and cluttered lamp and decided he would need an area to store some of his items so that he had more space in his lamp. He decided to build a shed. But so it would look nice, no matter the surrounding he also decided to use a color that went well with all styles, white (*cough* ivory). He slaved for 5 hours and 11 ...
I am one of those who took the challenge to use the SAMA5D4 from the kit. My take on it is to boot using nfs mounted root file system. This would have the advantage that I would have as much space in the root file system as I need and that I could easily do changes to the rootfs without flashing the board again and again. This should dramatically speed up the development process. Obtaining the rootfs Image  I'd like to use one of the large standard distributions so I look for a debian port ...
  I've done many attempts to build and execute my own C program on the atmel sama5d4 xplained ultra board.   Thanks to the tutorial on mikrocontroller-software.de, I was able to cross-compile and run my first binary (see post 13: Breakthrough - Run my own C++ Program on the SAMA5D4).     That same mikrocontroller-software.de has also helped me with the next step: blink the led.     Getting to Blinky  I've stolen the title of this section. Getting a led to blin ...
A useful presentation on securing your devices   Defining the Internet of Things (10:27) Unprotected devices will be attacked (13:15) Encryption (15:46) Single security model for all communications (17:56) Access control (20:13) Tracking device metadata (21:14) Provisioning in the field (22:38) Firmware updates in the field (24:07) Compliance with regulations (25:15) Reinventing the wheel (26:17)   http://blog.atmel.com/2015/05/04/the-10-challenges-of-securing-iot-communicat ...
While struggling to complete the blood-pressure measurement device, let's have a look about how to show measured value   In this project, measures will be communicated to the user in two way through a web interface that can be accessed by any device running a web browser through a Text-To-Speech engine   As I'm still waiting for the components required to build the Text-To-Speech engine, in this post I will focus on the web interface The web interface will be built using node. Th ...
The next challenge for Matilda was a temperature gauge, she'd planned to use an LED bargraph for this but was concerned it would "light up the house like a Christmas tree". Her next thought was a servo driven slider pointing at a scale. There was not much room for this so she wondered if she needed to bother with a Fahrenheit scale. She'd ask the oldest person she knew which was Farmer Hogg. It was lunch time so she knew where to find him, in the Adam and Eve.   Farmer Hogg  Matilda a ...
This update brings you how the clock will personally greet you when you stand in front of (it?, "It" seems so impersonal. My daughter Chrystal has named it "Tic", she says since we are going to make it talk. "Tic - T(alk)". Close enough explanation I guess. I use it as an acronym ("T"alking - "I"nteractive - "C"lock ). Here is the missing bracket).   So we programmed the Arduino to use the 2x16 LCD screen and Ultrasonic sensor to accomplish this. Below are pictures with the readout on the ...
rpbruiser

Genie Lamp [Update]

Posted by rpbruiser May 8, 2015
So there is no real progress on my project this week unfortunately. Being a high school senior in a residential program is difficult to find the necessary  tools at appropriate times. I have talked to the engineering professors and have begun to set up times in which I will be allowed to use the labs and materials based on my schedule. However, I was able to start a 5 hour print of my enclosure for the Yun and Infineon and RGB. I won't be able to access this enclosure until Monday though. I ...
Hans was struggling with installing requests[security] the compile issues seemed to keep coming back like a hydra regrowing its heads.   To take a break he went to visit his friend Albert. Albert invited Hans in and disappeared into the kitchen to make some tea. "Make yourself at home" called Albert from the other room. Hans sat down on the sofa next to a grey cat. It looked friendly so Hans went to pet it. As soon as he moved the cat stretched out its paw and out shot the claws. Hans reco ...
Good news, my Yun has arrived. I am not quite ready to move on to the internet side of my project, but it nice to be able to see what I am working with. On the minus side, the Ups shipping notification arrived two days after the Yun, but thankfully I was at home on the day that it arrived so there were no problems with the delivery. And now onto my progress. Having determined that the screen could be driven from 5v, my first step was to try and power it from the Uno. The minimum safe resistan ...
Today I've soldered the first prototype of the key fob: Please forgive the very raw prototype. As 1-wire device I've used the DS2401 which provides the ID only (as opposed to my earlier test where I used an EEPROM), because it is the cheapest 1-wire device I could find. Unfortunately I was not able to get them in the SOT-223-3 package which is the smallest package I might be able to solder. Instead I went for the TO-92-3 package which is through hole and easy to solder. On the upper side of ...
Ever since the storm Hans and Matilda's power supply had been quite flaky. The electricity company had sent engineers round several times who found and fixed loose connectors and faulty wiring deep in the forest. But the problems kept occurring so Matilda was keen to get their battery based supply up and running.   The Blue Haired Woman  On the day that Matilda planned to connect up the Yun they had a knock on the door. Hans opened the door and was greeted by a large blue ball of fu ...
The blood pressure measurement system revealed to be more challenging than I expected... As a matter of fact, the pulse detection algorithm takes up most of the Atmel 32U4 resources, thus leaving too few time to other tasks. This has some counter-effects, the most noticeable being a non-uniform movement of the continuous rotation servo. I tried several workaround, like moving the pulse detection algorithm in Timer3 ISR instead of Timer1 ISR (and obviously forcing the Servo  library to use ...
Today my goal is to cut more gears and other parts of the clock to get it to the assembly stage. This clock will be one of my long desired accomplishments, woodworking is my life and passion. Anyone interested in seeing other creations I have done check out: http://www.woodandironcreations.com/ This is a totally one of a kind woodworking creation company my partner and I own.   I have set aside the thought of using the SAMA5D4 for now, I have focued on the arduino and YUN for my project. I ...
  One of the enchantments for my 50's turntable is an Arduino Light Organ. The organ uses FFT to calculate the amount of bass, middle and treble in the turntable signal. I'm building a simple signal adapter to boost the tiny pickup coil signal.     One Transistor Amplifier  There are three reasons why I can't feed the pickup coil signal directly into the Arduino. The amplitude is small, it can't drive the impedance of an analog input pin (it has to drive an audio pre-a ...
I discovered this morning that back in 1945 there was a film called the "Enchanted Cottage" perhaps there will be a remake? ...
Wow, half way already!!   Here is an in depth update at where Chrystal and I are at.   Clock building: This is a slower then hught process, a lot of scroll sawing in making gears. I keep getting tempted with the CNC machine, but this I want to do by hand. Chrystal has been helping cutting out the gears as she has learned patience (from me of coarse). Below are pictures of the gears:     Next we have finaly received our voice recognition module. Attached are pictures and ...
Package Manager All modern Linux distributions come with a package manager such as Yum or RPM. The Linux distribution included on the Arduino Yun is no exception. It uses OPKG (Open PacKaGe manager). To get an upto date list of package you use the command opkg update to list the package available opkg list and there's install, update and remove commands for actually managing the packages. The instructions are covered in details in the link above.   Configuration You can change the behaviou ...