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.

c_johnson's Content

There have been 11 items by c_johnson (Search limited from 26-April 23)


By content type

See this member's

Sort by                Order  

#3125 Better way to synchronizing emulator and GUI thread

Posted by c_johnson on 28 September 2010 - 05:41 PM in Netduino 2 (and Netduino 1)

Hi Paolo, To help you out we've done quite a bit of work on the emulator front of things. Pleas visit our codeplex website: http://netduinoemulator.codeplex.com/ were you can read more about it. If your really intrested in lending a hand please feel free to send any of us on the site a PM (were also members of the forum) Other than this our source may be able to help you out or save you the effort. I would suggest if you want to get your emulator working you check out the older versionn as the newer version use's MVVM archetecture whicch if you haven't used it before may be daunting. The new version is availavle here : http://netduinoemula...ist/changesets# You will get more files than you need but if you work with the Netduino Emulator V1.275 folder that is the most up to date. If you want to play with a bit more the older version is available: http://netduinoemula...wnloadId=147473 This has buttons/toggle switchs and LED/DC motors to play with. Take Care Chris NetduinoEmulator Team



#2866 Friends I need to get some basic knowledge

Posted by c_johnson on 25 September 2010 - 09:55 AM in General Discussion

Hi Naga, I'm currentley working on the emulator with a few colleges. At the moment you can run some basic programs on the emulator. As with just updated the software archetecture. We currentley only support one push button, toggle switch and one LED as an output. While I do undetstand this is limeted more will be available when we sort out moveing the devices around the work space. The new version is availavle here : http://netduinoemula...ist/changesets# You will get more files than you need but if you work with the Netduino Emulator V1.275 folder that is the most up to date. If you want to play with a bit more the older version is available: http://netduinoemula...wnloadId=147473 This has buttons/toggle switchs and LED/DC motors to play with. It currentley support Digital Inputs/Outputs only as we need to intergrate analgue set up with Microsoft .Net Framework which were a little stuck with same with PWM. While limeted it does however show the basics and demonstartes how easy it really is to use Netduino. Cheers Chris NetduinoEmulator Team



#1672 Netduino Emulator

Posted by c_johnson on 02 September 2010 - 11:41 AM in Netduino 2 (and Netduino 1)

Hi everyone

I've added a DC motor as an output a little easier than servos at the moment. Just because it was easy and a quick thing to do please check out the Codeplex page if you want to contribute.

Set Inputs D0 to D6 as toggle switch you can use push buttons but I prefer testing them all. Set Outputs D7 - D13 as DC motors. Hit all the switches once till there blue (still got the same bug of setting them going straight away got a feeling this has to do with a flag or something I'm using) Then hit them all again and watch the motors spin Not very fast but hey it's a start.

V 1.24
http://netduinoemula...wnloadId=147473

Cheers
Chris



#1565 Netduino Emulator

Posted by c_johnson on 31 August 2010 - 01:54 PM in Netduino 2 (and Netduino 1)

Hi everyone

Well that took less longer than expected. Here is Version 1.23 (Beta) It currently has a configuration window with more options than available at the moment but hopefully they will be coming soon. There is still the small bug of you having to press a button once before it is set to the correct state of what you would expect thus Beta as I'm going to try and get rid of this later on today.

Once this is done I'll be looking into the use of a graph. Mainly to see how we can display this on form if not possible in another form to prevent the interface from become cluttered and undesirable. Hope you like this new release. It's being hosted on the codeplex website now because I've used up the amount I can upload to this forum (that took me long :))

Updated Version Available
V 1.24
http://netduinoemula...wnloadId=147473

V.1.23 Beta
http://netduinoemula...wnloadId=146972

Take Care
Chris



#1559 Netduino Emulator

Posted by c_johnson on 31 August 2010 - 08:20 AM in Netduino 2 (and Netduino 1)

Hi everyone, Looks like their will be a small delay on the next release I had to export the project to vista for the weekend and I'm having problems in what I thought was migrating the inputs and outputs to their own class but was in fact a failure to work at all. Chris Mancini I'll be taking you up on your offer for help sorry I've not updated over the weekend but I was stuck using mobile internet and it really doesn't like this site :s. In the meantime many thanks to José Ángel for adding me to the Codeplex project and I'll upload the updates their as well. Take Care Chris



#1471 Netduino Emulator

Posted by c_johnson on 28 August 2010 - 12:43 PM in Netduino 2 (and Netduino 1)

I may be able to help...Could you provide more information as to what it is you are trying to achieve?


Hi thanks for the offer manged to solve the problem it's pretty simple I've just never had to do it it before. It's simply a matter of accessing the forms control from a class. I've still gota test it so I'll PM you if the problem consists.

If all goes well I'll try to release the next version early next week which will allow the inputs to be configured to different styles of buttons. If I get Monday to myself I'll try and implement the graphical output at the moment I'm considering a seperate form which can display all the outputs as graphs just got to sort out the layout.

Take Care
Chris



#1467 Netduino Emulator

Posted by c_johnson on 28 August 2010 - 10:01 AM in Netduino 2 (and Netduino 1)

This is really awesome! The only thing I would add would be a time constant so that things which switch on and off very quickly are visible. Allow a thread.sleep time to be passed in or something. I had to modify my code to see it work, but it did work right off the bat. Very neat!


Hi,

Thanks for the suggestion I will look into it but this may cause conflict issues with access as the code your simulating will not be running in a the same speed as the emulator. Ideally with the graph output we would be able to see faster changes by adjusting the plotting time period much as you would with an oscilloscope but we will have to examine that later.

As for the current work moving inputs and outputs into a class has thrown up a problem as

D0.OnGpioActivity += new GpioActivity(D0_OnGpioActivity);

can not be correctly set up allowing for the changes on the form itself I'm sure I'll find the solution

Take Care
Chris



#1417 Netduino Emulator

Posted by c_johnson on 27 August 2010 - 03:57 PM in Netduino 2 (and Netduino 1)

Maybe you could use this for plotting? http://netcontrols.org/nplot/wiki/


Hi thanks for the suggestion I was looking at this or ZedGraph (http://zedgraph.org/...title=Main_Page) for plotting I have just come across an alternative (http://www.codeproje...phPlotting.aspx) which might be worth a look. But using a pre-built library will definitely be a way forward.

By the looks of it I should have a decent emulator up and ready with a couple of weeks depending on work. The buttons are complete and I'm half way to shifting the input and outputs into their own classes to allow more advanced configuration and the easy choice of different inputs and outputs.

cheers
Chris



#1413 Netduino Emulator

Posted by c_johnson on 27 August 2010 - 11:53 AM in Netduino 2 (and Netduino 1)

Hi,

As promised here is the updated Emulator were inputs and outputs can be set and a button or LED is shown respectively. I hope you find this useful is some way I'll try and keep this up to date but I'll have to get on with proper work now :s. Before there's an update I'll be cleaning the code up and moving it into it's own class so that more input and output options can be applied. Once I have the graph plots sorted I'll start to sort out the analogue inputs and outputs.

There is the small issue that you have to press the button first to get the edge applied as this is not done automatically and all outputs are initially set to false but if the on/off function is automatic this will not be visible.

Take Care
Chris

Please try the current version V1.24
http://netduinoemula...wnloadId=147473

Attached Files




#1411 Netduino Emulator

Posted by c_johnson on 27 August 2010 - 11:20 AM in Netduino 2 (and Netduino 1)

Hi!

hwiguna and me are working on it, if you are interested in developing the emulator, I can add you to the Codeplex Project as a developer. This way, you can use the Team Foundation repository to upload and share the code and work all together.

Regards!


Hi,

I've PM you on Codeplex and look forward to working with you

Cheers
Chris



#1408 Netduino Emulator

Posted by c_johnson on 27 August 2010 - 09:13 AM in Netduino 2 (and Netduino 1)

Hi all,

I'm a big fan of Netduino and do see it as the future for all PIC programmers out there. I currently work at Manchester Metropolitan University (MMU) we teach our students c# and one of the Hardest things for many is to shift to a different language for real world applications. Netduino now offers an affordable way for us to demonstrate this to them and I'm looking forward to pitching this idea for next years syllabus. Know it has been discussed before about a better Emulator than that supplied by Microsoft more tailored to Netduino users. With thanks to hwiguna who first pointed me of in the right direction (www.youtube.com/watch?v=lp3Ts2OeLjs&feature=related) of the code required.

I've taken this a little further and wish to create something a little more advanced. The file I've attached currently allows the Cpu.Pin.GPIO_Pin0 pin to be set as an input or output and when run as the emulator if you click on the button "Load Input/Outputs" it will either produce a push button switch (input) or a LED (output) this can be used much in the same way as the onboard switch and LED however there outputs. I still have to work on setting up the Analogue inputs/outputs.

(Note: The reason we configure the pins after the emulator has loaded is due to the main program being loaded after the emulator is loaded. So when the emulator is loaded it has no idea about the state of the pins)

I'm hoping by the end of today to have all the digital inputs set up like this and I'll upload this later. What I'm after is anyone who has c# knowledge as XML is not needed, I have none :s, to collaborate this project with. This emulator is open source and there will never be a license allowed for it ideally if we can get this up to scratch it will make the Netduino very user friendly especially for beginners.

Try running a few of the examples in NetduinoApplication by commenting out the current one and un-commenting another I've also attached a screen Shot of the emulator if anyone fancies a peak just Note that the button and LED only appear when appropriate input/output is selected.


Current Targets:

Produce a new set up for pins allowing the user to select

Inputs:
toggle switch
push button switch
Pots (Analogue)
Serial Comms
Outputs:
LED's
Graphical Display (Especially Useful for Analogue and PWM)
Serial Comms
Motor Control

While this seems like a lot if we split the work it shouldn't take to long much of the works has been done by Onir (http://netduinoemulator.codeplex.com/) who with great thanks has made it easy for me to get access to data from the pins.

I'll try and get a video up when it's complete but if anyone wants to supply one please do as I have don't have the software for it yet!

Many Thanks for Reading
Chris


Please note the update version 1.24 is available in a post lower down or
http://netduinoemula...wnloadId=147473

Attached Thumbnails

  • Netduino Emulator.JPG

Attached Files





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.