- Netduino Forums
- → Gilberto Garcia's Content
Gilberto Garcia's Content
There have been 8 items by Gilberto Garcia (Search limited from 19-May 23)
#30856 Home Alarm System using Netduino Plus (HomeAlarmPlus project)
Posted by Gilberto Garcia on 19 June 2012 - 12:28 AM in Netduino Plus 2 (and Netduino Plus 1)
#29536 Hello Pachube (AnalogInput)
Posted by Gilberto Garcia on 22 May 2012 - 06:47 PM in Netduino Plus 2 (and Netduino Plus 1)
I just tried Hello Pachube example to get started with ethernet activity.
var voltagePort = new AnalogInput(Pins.GPIO_PIN_A1);
The above line is not computing. AnalogInput is wavy underlined and Error reads:
Error 1 The type or namespace name 'AnalogInput' could not be found (are you missing a using directive or an assembly reference?)
I had a similar problem before. The following code solved my problem:
var voltagePort = new SecretLabs.NETMF.Hardware.AnalogInput(SecretLabs.NETMF.Hardware.NetduinoPlus.Pins.GPIO_PIN_A1);
I agree with Cuno, Pachube's code is working fine with the Cosm.
#28985 Home Alarm System using Netduino Plus (HomeAlarmPlus project)
Posted by Gilberto Garcia on 14 May 2012 - 02:24 AM in Netduino Plus 2 (and Netduino Plus 1)
I provide details and requirements on my blog and in the source code. I hope this is useful to someone.
Thanks!
Attached Files
- HomeAlarmPlus_02.zip 774.86KB 129 downloads
#28677 System.Diagnostics.Stopwatch class
Posted by Gilberto Garcia on 08 May 2012 - 05:07 PM in Project Showcase
Thank you so much for this library. It was a time saver. I added two more methods to the library (ElapsedSeconds and ElapsedMinutes).
public double ElapsedSeconds { get { if (m_startTicks != 0 && m_isRunning) { TimeSpan duration = new TimeSpan((Microsoft.SPOT.Hardware.Utility.GetMachineTime().Ticks - m_startTicks)); return duration.Seconds; } else if (m_startTicks != 0 && !m_isRunning) { TimeSpan duration = new TimeSpan((m_stopTicks - m_startTicks)); return duration.Seconds; } else throw new InvalidOperationException(); } } public double ElapsedMinutes { get { if (m_startTicks != 0 && m_isRunning) { TimeSpan duration = new TimeSpan((Microsoft.SPOT.Hardware.Utility.GetMachineTime().Ticks - m_startTicks)); return duration.Minutes; } else if (m_startTicks != 0 && !m_isRunning) { TimeSpan duration = new TimeSpan((m_stopTicks - m_startTicks)); return duration.Minutes; } else throw new InvalidOperationException(); } }
Attached Files
- System.Diagnostics.Stopwatch.cs 3.11KB 51 downloads
#25969 WiFly Shield
Posted by Gilberto Garcia on 25 March 2012 - 05:12 PM in Netduino 2 (and Netduino 1)
For best performance, I'd use the Netduino Plus with a WiFi Ethernet Bridge device. I know that a number of people have used Quiche's drivers...but I have not had a chance to use WiFly enough to have a good feel for performance.
Chris
I would like to add that I am currently using my Netduino Plus with a Netgear Universal Dual Band Wireless (WNCE3001). It requires a one time setup of SSID and password on the Wireless adapter, just follow the instructions.
G. García
#25768 Netduino Stopwatch Equivilent
Posted by Gilberto Garcia on 20 March 2012 - 01:11 PM in Netduino 2 (and Netduino 1)
#24678 Netduino for beginners - Gentle introduction with basic electronic project
Posted by Gilberto Garcia on 25 February 2012 - 02:38 PM in Project Showcase
#24017 Netduino Firmware v4.2.0 RC4 (Netduino + Netduino Plus)
Posted by Gilberto Garcia on 09 February 2012 - 02:37 PM in Beta Firmware and Drivers
- Netduino Forums
- → Gilberto Garcia's Content
- Privacy Policy