Show Posts
Pages: [1] 2 3
1  Products / Arduino Yún / Re: Send an email with Arduino Yun on: June 23, 2014, 10:23:21 pm
It turns out that the reason I was confused about the following section of code is that the comments are incorrect for this sketch.  They are from another sketch that that was cut and pasted into this example sketch! The only part that is correct, in the referenced section  is the "Process.p" part.
Code:
Process p;
  // This command line runs the WifiStatus script, (/usr/bin/pretty-wifi-info.lua), then
  // sends the result to the grep command to look for a line containing the word
  // "Signal:"  the result is passed to this sketch:
  // p.begin();

Some of the other comments are also incorrect and I suspect for the same reason.

I have researched and now understand all the code used in this application. It has been a most satisfying experience. 

I have now written a new sketch, based on this code, that monitors temperature and humidity and sends an email  if either rise or fall from some set range limit ( it also sends an email if and when the temp or humidity return to the normal range .  It works great,  It has been up and running for two days now. I breath on the sensor every once in awhile to see if everything is still working.
This a copy of the body of an email that was sent to me after I blew on the sensor:

Quote
Office Temperature and Humidity from David1 Yun
Temperature: 79.88
Humidity: 92.40

David Garrison
2  Products / Arduino Yún / Re: Send an email with Arduino Yun on: June 21, 2014, 11:26:53 am
Erni:

Thank you. This is a really net piece of code!!! 

Whats going  on in this part is mostly a mystery to me:
Code:
Process p;
  // This command line runs the WifiStatus script, (/usr/bin/pretty-wifi-info.lua), then
  // sends the result to the grep command to look for a line containing the word
  // "Signal:"  the result is passed to this sketch:
  // p.begin();



I see I have lots of home work to do to be more comfortable with Linux and Wifi control.

But the good news is that it does work and will provide a basis for several sketches  I am planning that require an email to be send when conditions require it.  Best news is that it does not require an external web host (Tremboo, et. al) to implement!!!!!


David Garrison
3  Products / Arduino Yún / Re: Anyone out there in YUN land using the Yun compatible Dragino MS14S? on: June 20, 2014, 12:46:18 pm
Yes, it has the Dragino M32 daughter board installed which has the same MCU that the Leonardo has.


David G.
4  Products / Arduino Yún / Re: Anyone out there in YUN land using the Yun compatible Dragino MS14S? on: June 20, 2014, 09:48:42 am
Thanks for your research. I contacted Dragino and they directed me to the upgrade instructions :

: http://wiki.dragino.com/index.php?title=Getting_Start_with_Arduino_Yun#Upgrade_MS14_Firmware

the latest upgrade is located at : http://www.dragino.com/downloads/downloads/motherboards/ms14/Firmware/Yun/Beta1.3/

It is a painless process that does not require a micro sd card (the MS14 doesn't have one) it is all handled by the wifi connection, fast and easy; an automatic  root boot after flashing and you are back up and running the application you had loaded before !!!

All and all I am  impressed with the level of detail and support that Dargino offers in this nicely packed product.


David Garrison
5  Products / Arduino Yún / Anyone out there in YUN land using the Yun compatible Dragino MS14S? on: June 18, 2014, 09:57:45 pm
I have one the Dragino MS14S  (I paid $44.00 plus a few dollars shipping for it)  and it does run any of the YUN bridge examples and any thing else  written for the YUn . . It does not have a micro SD card connector but I have been able to use a thumb drive USB flash instead. It mounts as sda1 or what ever...http://store.linksprite.com/arduino-yun-compatible-io-gateway/
general info on the OpenWrt wiki : http://wiki.openwrt.org/toh/dragino/ms14
My question is about updating the OpenWRT . I tried the YUN update instructions and it did not work... I searched the OpenWrt Wiki forum and some think that the Dragino  has a different Flash and RAM set up....it is currently running the Linino OpenWrt : built=Wed Dec 11 17:54:50 CST 2013

Any ideas???

David G.



 
6  Products / Arduino Yún / Re: Yun Update on: June 18, 2014, 04:38:00 pm
I was just scanning the new Yun postings and cam across this, a real forehead smacker!!! :

Quote
Otherwise, I would check if your sketch has a while(!Serial); in its setup function, as that is a common mistake: you think your sketch is slow, while it required you to open a serial monitor to start!.

My code that ran with the serial monitor open would not run after a power down and restart ( and not opening the serial monitor) "that's odd, that it doesn't run the code I just loaded before the power down? oh well... I'll look into that some day!" 

Forums are the best!  A good place to learn, even if you don't have a question!!

David Garrison
7  Products / Arduino Yún / Re: The YUN and Carriots on: June 17, 2014, 06:43:51 pm
I just spent a wonderful few hours playing with Yun and Carriots and got the Carriots YUN example up and running sending emails to me when "events" happen on the Yun  --BTW I believe their hardware hookup example picture is incorrect. I didn't use that set up and modified my Yun code to account for my sensor setup.

Carriots is a very, very capable (and therefore complicated, so expect to take some time learning how to use it) addition to the Internet  of  Things world.   

I am actually amazed at the apparent lack of interest in Yun/Carriots on this forum???

David Garrison
8  Products / Arduino Due / Re: Just for confirmation: DUE cannot have external parallel RAM? on: July 30, 2013, 10:40:26 am
Better yet: a  40 MHz SPI 256K x 8 8 pin SOIC package F-RAM : http://www.digikey.com/product-detail/en/MB85RS2MTPF-G-JNERE2/865-1250-6-ND/4022691

David Garrison

9  Products / Arduino Due / Re: Just for confirmation: DUE cannot have external parallel RAM? on: July 30, 2013, 10:28:50 am
There are large (128KB) i2C FRAM (non-volatile and fast) devices from several vendors. For example see: http://www.futureelectronics.com/en/technologies/semiconductors/memory/fram-mram/Pages/6338354-FM24V10-G.aspx
10  Products / Arduino Due / Re: Due GUI (Graphical user interface) - [now version 0.13] on: July 12, 2013, 12:41:49 pm
Hi All.

I just received my 5.00" CTE LCD and a CTE Due shield.. Loaded version 0.13 of the great Due GUI and ran the example demo 02...looks great..one problem was that there was no touch response....bummer...want I found was that touch was working but the Y axis was inverted!   

Hmm.... checked the jumpers on the shield and they looked OK, at least from what I could find on the CTE website...so I poked around in the source for Due Gui and found there is a function for both X and y axis reversing....

I added this-- DueGUI.setReverseY(true) to   setup:

 
Code:
// Initialise DueGUI
  DueGUI.InitGUI(6,5,32,3,2,52,2,51);
  DueGUI.setReverseY(true);

Works now..

Can't wait until this is complete it is really very nicely done. I have written a fairly complicated (graphically) 4 screen GUI using the original work by Mr. Karlsen for the Uno32 by Chipkit...sorry Arduino , but I needed the speed for the screen redraws!..

Feature Request:

Add the ability to define line width in DrawLine.. I need fatter lines!  It can be done by drawing offset multiple lines but, that's a pain....

thanks for all your hard work!

David Garrison
Gaithersburg, MD USA

11  Using Arduino / Networking, Protocols, and Devices / Re: Wifi only connects when connected to Arduino with serial monitor. on: June 25, 2013, 04:17:00 pm
Really odd this IOREF  connection. After having a look at the schematic and the instructions* for the connection required if you are using a non R3 pinout board.... I became more confused.. As it appears that connecting 3.3 volts to IOREF causes NO level change as pin 19 is the B side VCC pin (connection to the Arduino pins). The instructions [copied below] suggest that one can make a permanent connection by soldering a jumper on the shield ...looking at the schematic reveals that this connects 5 Volts to the IOREF pin!!  Huh????

Seeing that, I tried jumping  3.3V or 5.0V to IOREF and found both worked....Ah,  I love electronics.

In any case, if a jumper is NOT installed when using a non R3 Arduino the shield will not work properly. 


*"Using the Shield With Older Boards
If you are using the WiFi shield with an Arduino earlier than the Uno rev3, you need to make the connection below for the board to work. The WiFi board uses the IOREF pin on newer Arduino pin layouts (Uno rev3, Mega2560 rev3, and later) to sense the reference voltage for the I/O pins of the board to which it is attached. If you are using the shield with an older board, you need to connect the shield's IOREF pin to 3.3V. You can do this either with a jumper wire connecting IOREF to 3.3V as shown in the photo below, or by soldering the IOREF jumper on the bottom of the shield, shown below. WARNING: If you use the solder jumper, do not connect the shield to a rev3 or later board. To be safe, remove the IOREF pin on the shield. Otherwise, you will be shorting 3.3V to 5V through the IOREF pin."


David G.
12  Using Arduino / Networking, Protocols, and Devices / Re: Wifi only connects when connected to Arduino with serial monitor. on: June 25, 2013, 03:33:08 pm
The IOREF line connects to pin 19 of IC 4/2  a TXB0108 octal level shifter, see .pdf at :

http://arduino.cc/en/uploads/Main/arduino-wifi-shield-schematic.pdf


David G.
13  Using Arduino / Networking, Protocols, and Devices / Re: Wifi only connects when connected to Arduino with serial monitor. on: June 21, 2013, 02:35:26 pm
More on ...adding a jumper pin 3 to pin 7 on the Wifi Shield.

I found the reference to that, it's in the comments section at the bottom of :

http://arduino.cc/en/Main/ArduinoWiFiShield

Odd thing is that there is NO reference in this document to possibly needing to add a jumper from the 3.3 V pin to the IOREF pin...YIKES!!!!!

David G.

Gaithersburg MD
14  Using Arduino / Networking, Protocols, and Devices / Re: Wifi only connects when connected to Arduino with serial monitor. on: June 21, 2013, 02:16:53 pm
Ahh..


Had the same problem. I am using a Mega1280 as the host Arduino for the WiFi shield.

 I have a Webclient sketch that would connect only when the USB (useb to download and for the serial monitor)  was connected. Added an external 12v power supply and found it would not connect ( no green LED, nothing sent to the server) I found that pressing the reset a few times ( on the base Arduino or the Shield) would start it up....h'mm ....I had pins 7 and three jumper-ed as suggested somewhere. So I whet back to the drawing board and re-read : http://arduino.cc/en/Guide/ArduinoWiFiShield#toc2..there was the answer..

in the section on using the Shield with older boards...

"put a jumper in from the 3.3 V pin to the IOREF pin on the WiFi Shield..."

As there was no reference to adding a jumper from pin 3 to pin 7; I removed it. I don't remember were I found that instruction

Did that and and it now connects and functions with no USB connected and just an external power supply.

David G.

Gaithersburg MD

15  Using Arduino / Networking, Protocols, and Devices / Re: Wifi only connects when connected to Arduino with serial monitor. on: June 19, 2013, 07:40:33 pm
See:

http://forum.arduino.cc/index.php?topic=172615.msg1282049#msg1282049

Sounds like the same problem?

David G.
Pages: [1] 2 3