Netduino home hardware projects downloads community

Jump to content


The Netduino forums have been replaced by new forums at community.wildernesslabs.co. This site has been preserved for archival purposes only and the ability to make new accounts or posts has been turned off.

Chuckles's Content

There have been 39 items by Chuckles (Search limited from 30-March 23)


By content type

See this member's


Sort by                Order  

#57160 Bezels for Cases?

Posted by Chuckles on 27 March 2014 - 03:09 AM in General Discussion

Dave, yes, that is what I am looking for.




#57155 Text to a Speech?

Posted by Chuckles on 26 March 2014 - 09:52 PM in Netduino Plus 2 (and Netduino Plus 1)

Can anyone recommend a TTS shield/part/etc and driver that would work with a Netduino Plus 2?

Thanks.



#55855 Portable Power?

Posted by Chuckles on 04 February 2014 - 04:20 PM in General Discussion

I was looking at this

 

http://www.makershed...t_p/mkmts01.htm

 

 

Thinking that it might be valuable to have a Netduino Plus 2 attached and powered by it, and have that plugged into my AC outlet (I am in USA), so if the power goes out for any period my Netduino will keep running.

 

All comments appreciated.

 

 

Thanks.

 

 




#54310 Interrupts and Events Continue Firing

Posted by Chuckles on 26 November 2013 - 02:37 AM in General Discussion

...bump...

 

Anyone?




#54224 Netduino to Netduino?

Posted by Chuckles on 22 November 2013 - 03:18 AM in General Discussion

What would be the benefit/drawback of connecting two Netduino units directly for communication? I have no real application in mind, just thinking that there might be a use to say have a 'mini detect a certain condition and then push a signal to a Plus 2. Just a random thought. All comments appreciated.

 

Thanksk.

 




#54223 Interrupts and Events Continue Firing

Posted by Chuckles on 22 November 2013 - 02:46 AM in General Discussion

I am still digging....

 

I saw this tutorial : http://bildr.org/201...ensors-arduino/ and it is leading me to believe that I can get this to work:

 

https://www.sparkfun.com/products/246

 

the same as this :

 

http://www.mouser.co...pb%2bGHLi3qmps=

 

Is that true? The track is running indoors in a US school gymnasium (lights are fluorescent and 15+ meters in the air) so I think there should be no IR interference.

 

All comments welcomed, I don't want to buy the wrong sensors twice!  :unsure:




#54149 Interrupts and Events Continue Firing

Posted by Chuckles on 18 November 2013 - 03:21 PM in General Discussion

Posted Image

 

 

 

For this kind of derby race, cars run on top of wood guides. My plan was to drill small holes in a section of the track (image shows pink dots where holes could go), place the sensors there, and detect the shadow of the car as it passes over the holes. The crowd watching the race does not have an obscured view of the finish line. Cars have strict requirements about weight and dimensions and add-ons, so they cannot have anything added to them like reflective tape.There is approximately 3mm between the bottom of the car and the wood guide, so my plan was to drill small holes in each slot, embed the sensor in the hole, and run wiring though the hole and under the bottom of the track.

 

I thought that a light sensor would fit these requirements the best, detect when a shadow is cast over a sensor and mark the time.

 

As you can see, I am now having trouble with the detection part....

 

If I went with https://www.sparkfun.com/products/246 , what other hardware would I need to go with it? The video at seems to indicate it can accurately/quickly detect the difference between light and shadow.

 

I am also looking through stuff at Mouser (http://www.mouser.co...nsistor&FS=True) to get more clue.

 

All newbie help is very much appreciated!

 

Thanks.




#54142 Interrupts and Events Continue Firing

Posted by Chuckles on 18 November 2013 - 02:53 AM in General Discussion

  Personally, I would use a photo-transistor instead, it is easier to use and it will work much better.  

 

Thanks for the detailed response. I have re-evaluated what I am trying to do... And now am shopping for "photo transistors". My typical part suppliers have been Adafruit and Sparkfun, neither of which appears to carry what you are talking about. Do you have a vendor recommendation?

 

 

Thanks!




#54102 Interrupts and Events Continue Firing

Posted by Chuckles on 15 November 2013 - 02:22 PM in General Discussion

Chris, thanks for taking a look at this. I am putting in a big chunk of the program in the hopes that you can help me think though the right way to do eventing. This is code for a model car race track; a switch is closed and a race starts, when a car passes over a light sensor the time is logged, and if nothing happens in 10 seconds then the time is logged anyway and then a new race heat can begin.

// extraneous code removedpublic class Program{    private static InterruptPort _laneSensor = null;    private static InterruptPort _buttonOnboard ;    private static InterruptPort _gateSwitch = null;    private static Timer _heatTimer;   	 public static void Main()        {            OnboardHardwarePrep();            SensorsReset();            StartGateSwitchPrep();            TimeContainerPrep();            Thread.Sleep( Timeout.Infinite );        }                private static void OnboardHardwarePrep()        {            _ledOnboard = new OutputPort( Pins.ONBOARD_LED, false );            _buttonOnboard =                new InterruptPort ( Pins.ONBOARD_SW1, true , Port.ResistorMode.Disabled, Port.InterruptMode.InterruptEdgeBoth );            _buttonOnboard.OnInterrupt += new NativeEventHandler ( buttonOnboard_Fire );            _ledOnboard.Write ( false );        }                            private static void SensorsReset()        {            try            {                _laneSensor = new InterruptPort( Pins.GPIO_PIN_A1, false, Port.ResistorMode.Disabled, Port.InterruptMode.InterruptEdgeBoth );                _laneSensor.OnInterrupt += new NativeEventHandler( laneSensor_Fire );            }            catch (Exception xxx)            {                Debug.Print( xxx.ToString() );                // Why do I only get the text "System.Exception" and not rich problem info?            }        }                private static void StartGateSwitchPrep()        {            _gateSwitch = new InterruptPort( Pins.GPIO_PIN_D12, false, Port.ResistorMode.Disabled, Port.InterruptMode.InterruptEdgeBoth );            _gateSwitch.OnInterrupt += new NativeEventHandler( gateSwitch_Fire );        }                        static void gateSwitch_Fire( uint data1, uint data2, DateTime time )        {            RaceHeatBegin();        }                            static void RaceHeatBegin()        {            _ledOnboard.Write( true );            TimerCallback timerCallback = new TimerCallback( Tick );            _heatTimer = new Timer( timerCallback , null , 9999 , 9999 );            _laneTimeBegin = Utility.GetMachineTime().Ticks;            _ledOnboard.Write( false );        }                                static public void Tick( Object stateInfo )        {            Debug.Print( "Timer elapsed for the heat (9.999 seconds)." );            buttonOnboard_Fire( 0, 0, DateTime.Now );        }                static void buttonOnboard_Fire( uint data1, uint data2, DateTime time )	    {            try            {                if (null != _heatTimer)                {                    _heatTimer.Dispose();                }            }            catch (Exception xxx)            {                Debug.Print( xxx.Message );            }            TimingLog();            _ledOnboard.Write ( false );       		 }	   	             private static void MessagePrint( string messageToSay )        {            Debug.Print( messageToSay );            buttonOnboard_Fire( 0, 0, DateTime.Now );        }                        static void laneSensor_Fire( uint data1, uint data2, DateTime time )        {            _laneSensor.OnInterrupt -= laneSensor_Fire;            _laneTimesEnd[1] = Utility.GetMachineTime().Ticks;            MessagePrint( "Lane 1 : " + _laneTimesEnd[1] );        }            }

Also, the Micro Framework appears to throw and Exception if a property is assigned to an Interrupt port more than once (a tactic I tried in order to "reset" the hardware). Is that as-designed behavior?

 

Thanks.




#54101 Simple HTTP Client?

Posted by Chuckles on 15 November 2013 - 02:03 PM in General Discussion

@qsnapper, thanks for providing input. I was unable to get that to work with my configuration for some reason. I did not have the right reference assemblies loaded up to get those WebClient bits to work.

 

I used  Toolbox.NETMF.NET.HTTP_Client this way:

 var httpClient = new HTTP_Client( new IntegratedSocket( _remoteCollectionSite, 80 ) );                fullUri = _remoteCollectionPath + _paramBuilder.ToString();                HTTP_Client.HTTP_Response httpResponse = httpClient.Get( fullUri  );                Debug.Print( _remoteCollectionSite + fullUri );                Debug.Print( httpResponse.ToString() + "n");

However, if the remote server is not available the exception that comes from a timeout is not easy to trap. I might be having a problem with how Exceptions are caught in my catch{} block because I never get details as I am used to when creating .NET (non Micro) Framework software.

 

Thanks.




#54100 Piezo Part Recommendation?

Posted by Chuckles on 15 November 2013 - 01:54 PM in General Discussion

Very cool. As a newbie, I am trying to read http://search.murata...mmended_Circuit to understand what resistors to wire-up inline with that buzzer (still not fully grokking schematics). Is there a "Fritzing style breadboard view" that shows how to wire up that Piezo part?

 

Thanks.




#54090 Piezo Part Recommendation?

Posted by Chuckles on 15 November 2013 - 02:34 AM in General Discussion

Can anyone recommend a piezo buzzer/speaker part from any supplier (Adafruit, Sparkfun, Amazon, etc) that works well with the Netduino Plus 2?

 

Thanks.




#54088 Interrupts and Events Continue Firing

Posted by Chuckles on 14 November 2013 - 09:26 PM in General Discussion

Hey All. I have a Netduino Plus 2 with a Sparkfun photocell sensor wired up to Analog1 with a 10k resistor in the mix (equivalent to what you see in http://bildr.org/201...sistor-arduino/).

 

In my program.cs, I can drop a breakpoint at the event that is fired when the interrupt occurs, and after the first time the sensor interrupt occurs, the event is fired "forever", it does not ever stop.

 

After the event fires, I am logging the datetime ticks that the event happened, but then I do not want the event to fire again.

 

What is the proper programming pattern to accept the interrupt/event one time?

 

 

Thanks.

 

 




#53879 Config File Usage?

Posted by Chuckles on 08 November 2013 - 01:19 AM in General Discussion

Grant, that does help a bit.... In the non-Micro .NET Framework, the System.Configuration.ConfigurationManager class wraps a well-defined XML structure for containing strongly typed key/value pairs of data, and other meta-info. If you have written something yourself then there is probably no baked-in equivalent to ConfigurationManager, so I will write something myself, as you have already done.

 

 

Thanks.




#53878 Simple HTTP Client?

Posted by Chuckles on 08 November 2013 - 01:15 AM in General Discussion

There is a remote web server waiting to accept simple HTTP GET traffic and I want to make calls to it from my Netduino Plus 2. I am familar with using WebClient in the .NET Framework, but do not see anything comparable for the Micro Framework.

 

What is the proper way to just send a GET from a Netduino? I just want to send stuff like

 

http://192.168.1.1/g...a=1&b=2&c=3&d=4

 

from the Netduino to my remote web server.

 

 

Thanks

 

.




#53874 Config File Usage?

Posted by Chuckles on 08 November 2013 - 12:16 AM in General Discussion

What are experienced folks doing to read configuration information from files?

I did not see a way to use the System.Configuration bits, and I would like to set a destination address for sending output via a file to avoid hardcoding.

 

All ideas appreciated.

 

 

Thanks.

 

 

(.NET MF2, NetDuino Plus 2, Visual Studio 2012)




#53817 Visual Studio 2013?

Posted by Chuckles on 04 November 2013 - 01:56 PM in General Discussion

Take a look at the link you posted. VS 2013 is there. VS 2012 updates are there. VS 2012 Express edition for Windows Desktop is not there.




#53812 Visual Studio 2013?

Posted by Chuckles on 04 November 2013 - 03:46 AM in General Discussion

This is a problem for me because I just re-paved my laptop and now cannot seem to get a decent download link for VS 2012 Express, only 2013. Not good to keep this stuff out of sync...




#53066 TinkerKit DMX Shield

Posted by Chuckles on 07 October 2013 - 03:05 AM in General Discussion

I did a quick search and found

 

http://www.tinkerkit...duction-to-dmx/

 

and

 

http://en.wikipedia.org/wiki/DMX512

 

which says

 

DMX512 (Digital MultipleX) is a standard for digital communication networks that are commonly used to control stage lighting and effects. It

was originally intended as a standardized method for controlling light dimmers, which, prior to DMX512, had employed various incompatible proprietary protocols. It soon became the primary method for linking controllers (such as a lighting console) to dimmers and special effects devices such as fog machines and intelligent lights. DMX has also expanded to uses in non-theatrical interior and architectural lighting, at scales ranging from strings of Christmas lights to electronic billboards.

 

 

Now if only Secret Labs would make a fog machine....




#51382 Bezels for Cases?

Posted by Chuckles on 12 July 2013 - 02:38 PM in General Discussion

This looks like it had promise, once upon a time:

 

https://forum.sparkf...t=16946#p100892

 

but the links from there are long dead.

 

 

I wonder why an LCD-ready enclosure (with a couple of cable glands)  is such a rarity? Is everyone just exposing naked electronics, hoping their cat/dog/kid/curious friend doesn't touch anything?




#51363 Bezels for Cases?

Posted by Chuckles on 11 July 2013 - 08:15 PM in General Discussion

I have this serial display for connecting to my Netuino 2 Plus:

 

  http://www.amazon.co...0?ie=UTF8&psc=1

 

and now I am looking for a way to properly mount the display. I think what I want is a "bezel", so that any hole I nibble in my plastic case can have finished look. If that is the right term, where should I go for them?

 

 

Thanks.

 

[EDIT]

 

I think I found something. It just took a while for me to determine the keywords needed for the search engines.

 

https://www.oscsys.c...ore/product/253




#51134 OT: Lamp Powered by Ethernet Switch?

Posted by Chuckles on 06 July 2013 - 01:41 AM in General Discussion

I apologize for my lack of clarity. I am not asking about PoE. I am asking about using a simple ethernet switch (or hub) with "n" RJ45 twisted pair connections, being able to power a simple light. I understand that there is not a lot of power in each switch port, but I was guessing (hoping?) that maybe using 2-3 of them together could power an LED lamp of some kind. It seems like a simple utilitarian thing, but no one seems to make (or bg about home brew) such a device. Thanks!



#51133 Turnkey RTC?

Posted by Chuckles on 06 July 2013 - 01:38 AM in General Discussion

I have an LCD serial display for connection to my Netduino2+, so I think I will have a problem also connecting a serial clock, is that correct? is this page - http://blog.codeblac...d-with-I2C.aspx - accurate still in 2013? Thanks.



#51114 OT: Lamp Powered by Ethernet Switch?

Posted by Chuckles on 05 July 2013 - 03:00 PM in General Discussion

I have a Netduino 2+ that will communicate over ethernet. The ND will have a AC power, and the ethernet switch is also powered by AC. I wanted to find an LED lamp that could be powered by the switch, thinking it would be good to have one less thing in my surge protector.... But web searches have turned up nothing as simple as a lamp that can be powered by a typical switch. Can anyone say why no such devices seem to exist? Thanks.



#50794 Large LED for Drolling Tweets

Posted by Chuckles on 25 June 2013 - 01:07 PM in General Discussion

[EDIT]

The title should be "Large LED for Scrolling Tweets" but iOS autocorrect bit me again. And I don't seem to be able to edit the title or delete bad posts.

[EDIT]

 

 

I am probably getting ahead of myself since I am only past the 2nd blinky experiment, but I was wondering where I might be able to find a ready-to-plug (no soldering required) serial LED display that would emulate this on a Netduino+2: https://sites.google...tmatrixdisplay/ My general web searches have not turned up anything decent, and Sparkfun and Adafruit don't seem to have anything available. All ideas appreciated, thanks!





home    hardware    projects    downloads    community    where to buy    contact Copyright © 2016 Wilderness Labs Inc.  |  Legal   |   CC BY-SA
This webpage is licensed under a Creative Commons Attribution-ShareAlike License.