May 22, 2019, 02:40:00 PM
Welcome, Guest. Please login or register
News: Stay up to date with everything that's happening at http://plus.digitalsignage.com

MediaSignage support forum



Show Posts

Messages | * Topics | Attachments

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Topics - 2tor

Pages: [1]
1
Internet Of Things / Some problems with ioT and Arduino
« on: December 23, 2014, 02:31:44 PM »
Dear all,

I have some problems with ioT and Arduino. I´m just following all the instructions in the web: (see github dot com slash born2net slash mediaArduino)
but I´m stuck in one point and I can not continue.

Let me explain what I have found: comments in bold
 
-          I have upgraded de firmware of arduino yun to version 1.52.
-          I have configured Arduino wifi to be connected to my LAN network so I can connect to it via wifi without any problem.
-          I have also done the following steps referred in the above mentioned web page:
-          Burnt the Linux OS onto the Micro SD card. Download it from: ( see: digitalsignage dot com slash arduino slash SD_Image slash ArduinoOpenWRT.imgc)
-          To burn the binary image we will use a HDD Sector copy application for Windows. Downloaded from: (see the  original page here is not allowed to put external links)
-          Install the application in Windows HDDRawCopy1.10Setup.exe
-          Next you will need to connect the Micro SD to the PC, it should come up as a drive letter in Windows, like F:\ or something of that sort.
-          Next, launch HDDRawCopy, select source from file (double click) and select the downloaded file of: PerfectArduino.imgc   --> I do not recognize this name… see above the downloaded image was ArduinoOpenWRT.imgc What file shouls I record in the SD ArduinoOpenWRT.imgc or PerfectArduino.imgc ??
-          Now click 'next' to select the target device, which will be the drive letter of the Micro SD (be sure tp select the correct drive letter or you may lose data by formatting the wrong device).
-          Next, pick the Micro SD and click start to begin the burning process of the Linux OS image onto the micro SD card, this will take a little while.
-           Once it's done you can remove the micro SD from your PC and plug it into the Arduino --> Inside the sd card there is only one folder called arduino and inside it, another one called www and that´s all inside the sd card. Is this correct? What I should see inside the sd card?
-          Now that the Arduino is on your WIFI or Ethernet network, you will need to know it's IP address. The best way to figure this out is to install the Arduino IDE, from: (see: arduino dot cc slash en slash Main slash Software)
-          Next, connect the Arduino to your PC or Mac via USB cable.
-          Inside Arduino IDE, select the board type from: Tools > Board > Arduino Yun
-          Next, select Tools > Port to see it's new IP address that the Arduino received from your local network.
-          Next you need to ssh (login) onto the Linux side of the Arduino.
-          Once you confirm your Windows or Mac has the ssh command, execute ssh at YOUR_IP_ADDRESS, as in:
-          ssh root att 192.168.1.94
-          Default password is: arduino
-          Select 'yes' when ssh prompts you to remember the host.
-          Next, while logged into the Arduino Linux, execute the command:
-          cp /.extroot.md5sum /tmp/overlay-disabled/etc/extroot.md5sum -->I can not run this command because the directory /tmp/overlay-disabled an so on does not exist. I can do it manually, but I guess that once reboot as it is a tmp folder it will disappear  Any suggestion here??.
-          this will create a clean md5 hash so OpenWRT accepts the Micro SD as a valid device to mount. Don't reboot the Arduino just yet, as we need to install the Firmata driver onto the MCU of the Arduino so we can communicate with it from the node.js using the Firmata.js package.
-          Download from this git repository the file of:
-          firmata slash firmata.ino
-          and put it in a directory on your Mac or PC of: firmata/firmata.ino
-          you will also need to download 3 more files from this repository:
-          firmataSketch library\Boards.h
-          firmataSketch library\Firmata.cpp
-          firmataSketch library\Firmata.h
-          You will need to override the 3 default files that ship with Arduino as this library firmata files also add support for String argument passing to allow us to run custom C functions from Node.js. In Windows override the files at:
-          C:\Program Files (x86)\Arduino\libraries\Firmata\src
-          In Mac, I am not sure where are they located, it should be within the installation directory of the Arduino IDE installed App.
-          Next, we will burn in the firmata.ino C sketch into Arduino
-          In the Arduino IDE App select to open the sketch of:
-          firmata/firmata.ino
-          In the Arduino IDE App select Tools > Port > and select the Com port or IP address of the Arduino
-          Next, click update and upload to burn in the Firmata driver onto the MCU.
-          Once it's done, reboot the Arduino
-         
________________________________________
-          Is it all working?
-          At this point you should be able to ssh back onto the Arduino, execute:
-          cd /root
-          ls -al
-          you should see a bunch of files, if you do, you are in good shape. --> I do not see any file mounted in /root directory.  I´m stuck here and I do not how to have progress on this.
- If you don't you must have missed a step as OpenWRT did not mount the Micro SD as the main Linux drive. Now lets test that Node.js can communicate with the Micro controller. Type:
-          /root/dev/testFirmata.js
-          You should see the text below and the red LED on pin 13 should blink a few times. If you did, GOOD JOB, the hard part is behind you.

What suggestions do you see, where would it be the problem?
 
Regards.

Pages: [1]
Carbonate design by Bloc
variant: carbon
SMF 2.0.12 | SMF © 2016, Simple Machines