Skip navigation

Enchanted Objects

4 Posts authored by: nikil511

Purchased an RGB led strip some time ago, 1m, waterproof, for 3€ from ebay. (Unfortunately, it was not tri-led, so keep that inmind when you purchase)

Did a quick test with a multimeter, it pulls around 170ma per channel.

The  RGB LED Lighting Shield with XMC1202 is very straight forward. Just need to solder 4 pins (SCL, SDA, GND, IC2 pull up) so you can stack it ontop of arduino uno.

DSC_0004.JPG

I then found an arduino demo on infineons website here:

Boards and Shields for Arduino - Infineon Technologies

Infineon-Arduino_Getting_Started_Examples.exe-GS-v01_00-EN

You download a windows installable, which upon execution places a zip in install directory, and then you need to extract the zip, so you can get a single arduino ino file !

Why all this trouble, for a source file!? I think this is a good oportunity to introduce https://codebender.cc/

It's an online arduino IDE, which you can even compile a sketch and upload directly to your arduino from the browser.

And here is the infineon rgb demo source:
https://codebender.cc/sketch:105851

(I've tried to embed it, but element14 site does not like it I guess)

 

and this is the result:

I Just received Arduino Yun.

There was some delay due to Greek customs,  as it was send from the US,  but element14 took care of it, along with the expenses

Thanks! :-)

DSC_0133.JPG

 

So I power up YUN with a micro usb cable, and search for wifi. Found one named "Arduino YUN blahblahxxxxx", connected and tried surfing it on IP 192.168.240.1

And this is the welcome screen. (password is arduino)

yun-1.pngyun-2.png

 

I configured my Wifi SSID and pass, (would be usefull to have a tick-box for displaying pasword)

rebooted and I can see Yun on my accesspoint, getting an IP, great!

 

yun-3.pngyun-4.png

 

Did an ssh connection via putty, using root and arduino as pass, and here is the linino.

Downloaded arduino 1.6.3

Arduino - Software

Specified board as Yun, selected correct port, and uploaded the "blink" example... waiting...it works! :-)

All was straight forward and as expected, nice.

YunResetIllustrations.png

Note, if something goes wrong with your Wifi settings, you can:

  • hold the WiFi button for more than 5 seconds but less than 30, it will reset the WiFi networking settings.
  • or hold down the Arduino’s WiFi reset button for more than 30 seconds, and Yun will reset to factory conditions.

 

 

 

 

 

 

 

 

 

next >> [ExM] #4 First attempt with infineon RGB LED Lighting Shield XMC1202

 

 

Following pettitda instructions  Atmel SAMA5D4 Xplained Ultra Road Test -- Day 3

I installed the USB driver, and hooked my SAM to the USB of a windows machine, connected with putty....and... hello there!

Note that I did not have to change flow control to "none", just changed speed to 115200 and set correct port.

"root" account is without password. Had a look around, by running:

uname -a

Linux sama5d4-xplained 3.10.0-custom #1 Thu Oct 30 16:04:45 CST 2014 armv7l GNU/

cat /etc/issue

    Poky (Yocto Project Reference Distro) 1.6.1

cat /proc/version

    Linux version 3.10.0-custom (josh@melon) (gcc version 4.8.2 (GCC) ) #1 Thu Oct 30 16:04:45 CST 2014

df -h

Filesystem      Size  Used Avail Use% Mounted on

rootfs          446M  100M  347M  23% /

ubi0:rootfs    446M  100M  347M  23% /

devtmpfs        251M    0  251M  0% /dev

tmpfs          251M  72K  251M  1% /run

tmpfs          251M  108K  251M  1% /var/volatile

 

top

top - 09:14:38 up 51 min,  1 user,  load average: 0.08, 0.03, 0.05

Tasks:  39 total,  1 running,  38 sleeping,  0 stopped,  0 zombie

Cpu(s):  0.3%us,  0.3%sy,  0.0%ni, 98.7%id,  0.0%wa,  0.0%hi,  0.7%si,  0.0%st

Mem:    513976k total,    25240k used,  488736k free,        0k buffers

Swap:        0k total,        0k used,        0k free,    11776k cached

 

opkg list|grep java

    but got nothing back

 

Did a quick search, and came up with this:

https://software.intel.com/en-us/blogs/2014/04/04/some-hints-on-yocto-builds-for-iot-devkit-example-adding-java-jre

It's for Intel(R) Galileo board, but it's also using Yocto. This gave me a hint, that I need to specify a source url for /etc/opkg/opkg.conf but is there one that we could use ?


So I guess that means, I will have to install Java manually, or the normal (atmel) approach must be to build a different image with the distro of choice (i.e. debian) and inherit the support/repos/etc.

As a quick and dirty test, I tried the following:

wget http://ftp.heanet.ie/mirrors/funtoo/distfiles/oracle-java/jdk-7u60-linux-arm-vfp-hflt.tar.gz

                          (Oracle requires "I agree" ticks, so I did a search and found a random mirror for direct download)

mkdir /java

tar xzf jdk-7u60-linux-arm-vfp-hflt.tar.gz

export JAVA_HOME=/java/jdk1.7.0_60/jre/

java -version


     java version "1.7.0_60"

     Java(TM) SE Runtime Environment (build 1.7.0_60-b19)

     Java HotSpot(TM) Client VM (build 24.60-b09, mixed mode)

 

..that went smooth

 

Next post >> [ExM] #3 First attempt on Arduino Yun

Project background

I am a (software) engineer and an espresso coffee enthusiast. As a result, I could not settle for an ordinary instant capsule coffee with hightech chemistry but without real smell and taste of proper coffee (i.e speciality coffee). So I got myself an  old school professional espresso coffee machine, revived it and I am enjoying quality coffee at home... well kind of. These old heat exchange espresso machines, require expert handling, to produce decent coffee. It's not like you press a button, and magic happens. You need to warm it up for 30+ minutes, and then heat flush (throw away some hot water) to bring it to perfect temperature (somewhere between 90 - 94C) so you can brew your espresso. In addition to water temperature, the volume of water and brew time have a major effect on the end result taste. As if this wasn't enough, one should also consider grind setting combined the amount of coffee per shot, (and freshness of beans, and room humidity :-P)


I guess that's why most people prefer ready-to-use coffee capsules, but sometimes I like the long way home :-)


As a home-barista I am constantly trying to improve my skill, and resulted coffee. This requires attention to details so that I can reproduce the same result. It would have been so much easier if I could see all brewing related values, store logs among with comments on the coffee taste, so I can study them later, and improve/reproduce the best results. Therefore it is now time for my old espresso machine to get an upgrade to the IoT world !


Introducing Espresso ex Machina!


Espresso ex Machina.jpg



Core objectives, espresso machine mod: (in blue color)

  • add temperature sensors (need to decide between thermocouples, thermistors, ICs etc)
  • PID control of heating element via SSR using Arduino SAMA5D4
  • connect water flow sensor, to Arduino (and calibrate). This is needed to keep track of water volume in produced coffee.
    • old/original  sensor already deployed. I am assuming it's an open collector output, but will find out more
  • add one or two RGB led stripes to give some “life” to the machine using the Infineon Lighting RGB LED Arduino Shield. Will try the “breath in/out” effect, and use color to describe if boiler is ready/worm (takes about 30 minutes)
  • Connect a speaker to SAMA5D4 and run a “text to speech” application for reading out loud temperature values, and other coffee related information.
    • Will also try some “speech to text” (e.g. trigger readings on word “coffee”). This could be possible with android on SAMA5D4 but I will experiment first with yocto/linux and openhab
  • log and submit all readings (temp, timestamp, duration, volume) to a cloud service (e.g. Xively, thingspeak) via http or mqtt
  • tag readings somehow with my  “coffee taste review”  (could be via the machine again, and a 5 star rating via keyboard, or via smartphone using some basic app)


I guess the above could be accomplished on Arduino Yun , but to play with text to speech (and my favourite OpenHAB) I will be using SAMA5D4.


Extra objectives if time permits: (in pink)

  • Add Arduino Yun to log and submit grinding duration, hence estimate of coffee grams, but I need to find a way to read grinding settings automatically. (?)
  • add a pressure sensor, to log actual water pressure as well
  • control rotary pump speed, to adjust pressure, hence do “pressure profiling” which makes a big difference in espresso taste.
    • need to replace the AC motor, with a DC equivalent, and use the Infineon DC Motor Control Shield for Arduino
    • alternative lame approach, keep AC motor, add an adjustable Voltage Regulator. Connect servo on the potentiometer, use Infineon shield to control servo, to control voltage regulator, to control AC motor :-P


Any ideas on how to tackle these issues, easy, quick and cheap, are more than welcome.


Next >> [ExM] #2 First attempt on the Atmel SAMA5D4, installing JAVA