- Netduino Forums
- → Nobby's Content
Nobby's Content
There have been 66 items by Nobby (Search limited from 03-July 23)
#33833 .NET Micro Framework 4.3 Roadmap
Posted by
Nobby
on 17 August 2012 - 03:33 PM
in
General Discussion
#37263 Running out of memory
Posted by
Nobby
on 16 October 2012 - 04:31 AM
in
Netduino Plus 2 (and Netduino Plus 1)
#39290 Anyone try driving a relay with two output pins.
Posted by
Nobby
on 13 November 2012 - 09:48 PM
in
General Discussion
If I'm using a dual coil latching relay with voltage of 3V (with coil resistance 129 ohms), do I need to use the transistor ??
It's a bit touch & go with your situation. When they say 129 ohms, they mean total impedance. Part of it is reactive and the other is purely resistive. 129ohms at 3.3V from the CPU pin will draw up to 23mA which is borderline. If you intend on driving the relay in short bursts then it would possibly be acceptable but otherwise you wouldn't.
Once the transient behaviour dies away from switching the relay on, the effective impedance of the relay will be less and you'll exceed the maximum continuous current draw from the CPU pin and smoke the poor thing.
If it was me, I'd use a transistor.
#38212 How to check if ethernet is connected?
Posted by
Nobby
on 30 October 2012 - 12:45 AM
in
Netduino Plus 2 (and Netduino Plus 1)
#36993 Runtime Memory Usage
Posted by
Nobby
on 10 October 2012 - 11:45 PM
in
General Discussion
#37011 Runtime Memory Usage
Posted by
Nobby
on 11 October 2012 - 04:32 AM
in
General Discussion
Hi Nobby,
Try:
int freemem = Microsoft.SPOT.Debug.GC(...);
You can optionally pass in true, forcing a garbage collection, giving you the full amount of memory available.
Chris
That worked a treat, thanks Chris
![:o](http://forums.netduino.com/public/style_emoticons/default/ohmy.png)
#36842 .NET MF 4.3 beta
Posted by
Nobby
on 09 October 2012 - 10:30 AM
in
General Discussion
#38172 Getting Started with Netduino: Connecting to the Internet
Posted by
Nobby
on 29 October 2012 - 10:57 AM
in
Netduino Plus 2 (and Netduino Plus 1)
I have version 4.1 since this is what is recommended in the Download section of this site.
I tried all your suggestions and my browser still doesn't want to connect to the Netduino. I am running the example code from Chapter 8.
I really appreciate the it! Here is a screenshot of my current network settings in MFDeploy:
I noticed in your MFDeploy screenshot that your default gateway isn't in the same IP pool as the DHCP assigned IP address(192.168.5.XXX vs 192.168.1.XXX). Since you're using 24-bit networking, a lot of things are going to go south here. It also suggests that you might have some sort of configuration issue in the netduino or your router.
--Edit my bad: I saw that was your old static IP address.
#32747 Circuit example for 4-20mA measurement
Posted by
Nobby
on 27 July 2012 - 03:28 AM
in
Netduino Plus 2 (and Netduino Plus 1)
Hi Guys,
Separately, do you have any sample circuit to connect to N+ for measuring 4-20mA Analog input?
Together with sample code will be great. Currently I am using VB.net to handle the 12V pulse input through opto-coupler circuit.
Thanks in advance.
I don't think you can measure current with a microcontroller. You need to transduce the current to a voltage.
The most accurate method is getting a transducer which uses electromagnetic coupling. It's also the most expensive method.
The easiest method is to use a really small series resistance (1-5 ohms, whatever you can get your hands on) with the circuit you are measuring current. Measure the voltage across the resistance and divide that by the series resistance in your netduino code. The result has errors obviously. Adding resistance to the circuit changes the current. You might also get non-negligable current flow into the analog pin even if it has a high impedence characteristic during analog sampling.
The other consideration you need to be aware of is that 4-20mA is a rather small current to transduce. Mostly because ADC(Analog to Digital Conversion) usually has a precision relative to the operating voltage of the microcontroller(AVR/Netduino) and the value of AREF(usually set to zero volts or Vcc/2). A current that small will produce a voltage so small it will appear as zero after ADC. You'll need to amplify the transduced current signal significantly, especially if you are working in a narrow measurement range (4-20mA).
You can make a simple voltage amplifier with two resistors and an op-amp package.
#32847 Circuit example for 4-20mA measurement
Posted by
Nobby
on 28 July 2012 - 01:21 PM
in
Netduino Plus 2 (and Netduino Plus 1)
Hello Alex,
Sound a typical field instrumentation problem.
Use a 250ohms in parallel to 4-20mA signal. Remember V=IR .... V=(4/1000)(250) = 1V...do similar
operation for 20mA and you get 5VDC...right in the acceptable voltage range of the Analog inputs...
Hope helps.
You can't measure the current of a circuit using a parallel impedence, that's only appropriate for voltage measurements(scale conversion). Parallel impedence splits the current through branched paths and it also alters the characteristics of the circuit in a large way(unless the impedence is essentially infinite, 250ohms is very low).
The current transducer circuit has to run in series and have a negligable impedence.
#32508 Microsecond timing
Posted by
Nobby
on 23 July 2012 - 07:59 AM
in
Netduino Plus 2 (and Netduino Plus 1)
#32088 Netduino Plus Socket Server Help
Posted by
Nobby
on 17 July 2012 - 06:16 AM
in
Netduino Plus 2 (and Netduino Plus 1)
#38705 Something new is brewing in the Secret Labs
Posted by
Nobby
on 08 November 2012 - 06:04 AM
in
General Discussion
![:)](http://forums.netduino.com/public/style_emoticons/default/smile.png)
#33832 Insights into DHCP issues
Posted by
Nobby
on 17 August 2012 - 03:27 PM
in
Netduino Plus 2 (and Netduino Plus 1)
Hi Nobby,
There appears to be a bugfix in lwIP to correct this type of issue. .NET MF 4.3 is getting an lwIP upgrade, so we're hoping to have a fix for this soon. [lwIP is a big complicated project and 10,000s of boards rely on it working properly...so introducing the update in beta firmware should help it get some good in-field testing.]
Chris
Thanks for the information Chris
![:)](http://forums.netduino.com/public/style_emoticons/default/smile.png)
#33808 Insights into DHCP issues
Posted by
Nobby
on 17 August 2012 - 04:15 AM
in
Netduino Plus 2 (and Netduino Plus 1)
#38703 High Resolution Quad Encoder Problem
Posted by
Nobby
on 08 November 2012 - 05:54 AM
in
General Discussion
Well, I understand the concept and I dont have a problem writing the code for say a 2.4GHz processor x86 with a 4 GBs of ram sampling time of around 1e-6 second easily, the problem I had over here was using this high resolution encoder with a netduino thats all. Just to put things in perspective, if the shaft is rotating at 3 revs/second (180 rpm which is not much )thats 1200*3 = 3600 interrupts/second. I just need help on generating an efficient enough code for the netduino to be able to handle all that along side of some computation thats all. Like I said I am just not used to micro-framework.
There's a couple of ways you can deal with your scenario. If your PID controller is for speed only then the only problem you'll face is convergence speed and possible overshoot depending on your performance specification. Even if the interrupt frequency basically matches the transport delay of the netduino hardware/framework, you just design your PID outer control loop as fast as the device can.
Position control for 3600 interrupts/sec is going to be hard. Depending on how smooth the control needs to be, you would probably have to slow the motor down. If you have to maintain a particular speed range then you'll most likely have jerky position control from lack of controller bandwidth and transport delay.
Although the netduino is capable of 100ns precision timing, most timing functions have 1ms precision. Do you have an option of a lower resolution encoder or do you need to have ridiculously fine position control?
- Netduino Forums
- → Nobby's Content
- Privacy Policy