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.

Magpie's Content

There have been 156 items by Magpie (Search limited from 20-April 23)


By content type

See this member's


Sort by                Order  

#25331 Anyone is interested on a high-end acquisition shield?

Posted by Magpie on 10 March 2012 - 01:40 PM in General Discussion

I'm definitely interested. I voted but my answers don't seem to be recorded. 16 bit is definitely enough for me. Stacks of sensors but obviously not all of them can be close to the Netduino. Have you had a look at what GHI is doing with gadgeteer, I am sure that is not what I want personally but the versitility sounds good. I guess if you can work out a list of types of sensors people may want to attach, it would possibly give you a bit of guidance. good luck. Tried it again, it worked.



#25332 CT Sensor help please!

Posted by Magpie on 10 March 2012 - 02:01 PM in General Discussion

Hi Emg I did a quick calc, and it looks like you will get 0.33 * 0.17 / 5 = 11 millivolts rms out of you current sensor when your pump is running. By the time you rectify this with a silicon diode, I would imagine you have 5/8 of F all. If it's going to be a permanent fixture you could tap into the circuit somewhere and measure the voltage. With safety being a priority of course. This might be enough for your purposes. The main trouble with the clip on current sensors is the primary being less than one turn. So you dont get much output whatever happens. The other thing that you may or may not realise is that you only put one conductor through the current sensor, otherwise they cancel. ie. leave the neutral and earth out of it. This would involve stripping away the sheath, which is probably illegal in your country as it is in mine. I suggest another approach. Cheers.



#25448 Delay or getting stuck at deployment "Preparing to deploy assemblies to t...

Posted by Magpie on 13 March 2012 - 11:09 AM in Visual Studio

Yes using 4.2 rc4 you must cancel deploy before pulling out the usb.



#25488 USB Audio Device - FINALLY WORKS!!

Posted by Magpie on 14 March 2012 - 03:49 AM in Project Showcase

Just make it anyway. Olimex can spin up a couple of boards for under 40 Euros. I think it's a good project, and I would like one. I could help a fair bit as I have a bit of a background in Audio.



#25535 How much current can you draw from the 5v pin?

Posted by Magpie on 15 March 2012 - 06:00 AM in Netduino Plus 2 (and Netduino Plus 1)

Put one of your video card type heatsinks onto the netduinos voltage regulator chip, that should help.



#25598 Multithreaded Webserver and DataLogger

Posted by Magpie on 16 March 2012 - 08:11 AM in Project Showcase

Thanks for that message H07R0D I''m really pleased you can use it, even in its unfinished state. If you see any bugs or improvements, then let me know. I saw your aquarium site, I noticed that you are using similar temperature sensors to me. I am thinking you might want a bit more accuracy. ie. using a ds1820 like many others are using. One thing I found with my LM135s (i think) was I got much better results when I put a voltage regulator output into the ARef pin to stabilise it and also a load resistor. I normally take just one look at git and (not github) and murmur WTF to myself. Normally all I want to do is Check in, check out, revert, update, I think I would need a wrapper around git to provide this. Maybe I have been using SVN too long.



#25599 Detecting Sensor Type

Posted by Magpie on 16 March 2012 - 08:32 AM in Netduino Plus 2 (and Netduino Plus 1)

Hi Mohammad The short answer is no. Generally when you put together a circuit you know what you are connecting, so it is not necessary. Usb devices do have a discovery mechanism but I am fairly sure the Netduino usb connector cant be configured as a usb host anyway. Maybe if you give us more specific information about your needs there might be another way to do it.



#25605 Steff Shield

Posted by Magpie on 16 March 2012 - 10:39 AM in Project Showcase

I am going for the A8447 from Allegro for the step down Vin buck converter.
The only trouble is digikey doesn't like my credit card. So I might have to use the A8499 which is similar but not as good. Attached is a schematic of the shield without the actual led drivers.


I haven't decided on a chip for the Led Driver, I have been looking at hysteretic control, which is turned on and off by PWM at speeds in the kilohertz.
Hysteretic control is basically measuring the current through the inductor and turning on when it is lower than the low threshold and turning off when the current is higher than the high threshold. It's very efficient because it minimises the switching rate.

This seemed perfect until I realised that this would still be noisy in the top end of the hearing range. I really want the converter to operate in continuous mode to reduce noise. Wheres the LM3401 goes into and out of continuous mode at 20khz.

I have plenty of options but no obviously good ones.
  • adjust the thresholds rather than the enable.
  • use a different chip with a different control method.
  • go back to a home brew style circuit.

Attached Thumbnails

  • LM3401 schematic.png
  • LM3401 waveform.png



#25606 Minimum AnalogInput Read value

Posted by Magpie on 16 March 2012 - 11:13 AM in Netduino Plus 2 (and Netduino Plus 1)

Hi Spcboog I know I am late on this but I think there are a couple of readings you should try. Tie at least 2 of the "Analogue In" pins to ground each via a resistor say 1k and disconnect the sensor. Measure the following pins with the black probe connected to GND. Vin, 5V, 3.3v, ARef, AGND, and obviously the analogue pins. Tell us what your readings are. What does your software read. Also Are you using ARef in your code? It often pays to double check the obvious.



#25643 Minimum AnalogInput Read value

Posted by Magpie on 17 March 2012 - 01:28 AM in Netduino Plus 2 (and Netduino Plus 1)

Hi The readings you did looked fine unless of course your software is using Aref. There was a couple more questions you didn't answer. What does your software read. Tied to ground. Also Are you using ARef in your code? The is a setting in code you might have to call.



#25649 Minimum AnalogInput Read value

Posted by Magpie on 17 March 2012 - 10:04 AM in Netduino Plus 2 (and Netduino Plus 1)

Hi Probably the last thing I can think of is for you to post some repro code. If you can post some code that allows people to reproduce this, then I could do a comparison. Also mention any other wiring you might have, Secret Labs firmware version, also are you using ethernet? Sorry you already answered this. Maybe its something called "burden voltage", although it seems very high.



#25673 USB Audio Device - FINALLY WORKS!!

Posted by Magpie on 18 March 2012 - 07:21 AM in Project Showcase

Hi Hanzibal I used Kicad recently, I found it fairly easy to learn, compared with Eagle anyway. Also it is open source and you are not limited in anyway. Both packages have their own bizarre UI way of doing things but you get used to it. I must admit I didn't get far with Eagle, I seemed to get a mental block whenever I open it up. With KIcad I followed some video tutorials and I have managed to do just about everything. The only thing I still haven't managed is to fill an earth plane in an easy way. But I managed to import all the eagle libraries, sparkfun libraries into Kicad and make my own library. Then layout a board that passed DRC by olimex. Although I got pinged 3 Euros by then for using non standard drill holes. I would use some form of source control with your drawings, libraries as it is quite easy to do things inadvertently. So the ability to roll changes back is critical. Diptrace is also supposed to be ok but I didn't try it.



#25763 Sharing code between projects

Posted by Magpie on 20 March 2012 - 10:49 AM in Visual Studio

Scrub that, I misread the question.

So some of your source code is identical, in both types of projects, so you only want to maintain one copy of it. Is that what you want?

You definitely can't share the compiled code, but I don't think there is any reason that you can't share the source code, if you can get it to compile in both types of projects. You might have to use a lot of ifdefs or whatever C# has for conditional compilation.

I think you would be better off having two solutions and cutting and pasting any similar code.
That way you can have two instances of visual studio and can debug both at the same time.



#25882 USB Audio Device - FINALLY WORKS!!

Posted by Magpie on 23 March 2012 - 02:25 AM in Project Showcase

Hi Just a word of warning. But hopefully it wont apply to you because you're using eagle. I uploaded some kicad gerbers to BatchPCB and everthing passed DRC but.... The images of the layers they sent me back were all wrong. They seemed to have mixed up my layers and I had copper traces saying R3 instead of silkscreen. I tried numerous times but could not resolve it. So hopefully you checked the images they sent back and they were good, or maybe it was just my images that were wrong. That was the reason I went with Olimex instead.



#25924 [UK] Electrical Supply help

Posted by Magpie on 24 March 2012 - 11:38 AM in General Discussion

Hi Do you have smoke alarms? If you dont you should get some, even though they are annoying. Like Mario I find it difficult to see how a blowing light bulb would take out a circuit breaker. I am not saying it didn't happen but it's hard to understand. The only reasons I can think of for overvoltage on your mains are line surges or a broken neutral. Broken neutrals I would say are quite uncommon but can have serious consequences. If you ring up your supply Authority and say you suspect you have a broken neutral they might come and inspect for free. Can you get a second sparky in to verify the safety of the installation, especially the neutral and the earth connections, don't get the first one he may be dodgy, I would say it might be two hours work. Otherwise can you just turn off any dodgy circuits, at the switchboard and see if the rest of the house is ok? I wouldn't be getting the multimeter out unless you know what you are doing, and you are in a clear state of mind.



#25926 USB Audio Device - FINALLY WORKS!!

Posted by Magpie on 24 March 2012 - 11:43 AM in Project Showcase

Is it going to work first go? No mods. Of course it is!



#25928 [UK] Electrical Supply help

Posted by Magpie on 24 March 2012 - 12:21 PM in General Discussion

Yes I did see you said undervoltage, I just made a big presumption that only overvoltage will take out the light globes. Anyway hopefully you have found the cause of your troubles. Good Luck



#25983 Steff Shield

Posted by Magpie on 26 March 2012 - 11:59 AM in Project Showcase

Sure Ralim
I would be happy to send you something for trial. Sorry it's taken so long to reply.

It seems I can't easily avoid the hysteresis style dimming, but I am just a bit worried about em noise.
Still there are things you can do about it. I will look into that later once it is built.

Basically I want to use a buck topology, this is a step down only converter and as such is slightly more efficient than a step up or a step up/down converter. Have a look in Wikipedia if you need more background.

The only slight difference with the led driver circuit from a normal buck converter is that we pulse modulate to set our desired current, where most converters pwm to set the voltage as long as the current is not above some limit.
We will choose the non synchronous version because it is a lot simpler and only has slightly higher inefficiencies.

To make a Led driver Stupidly efficient we have to work out where our losses will be.

From Wikipedia. Sorry if I don't elaborate every point.
Conduction losses that depend on load:

  • Resistance when the transistor or MOSFET switch is conducting. (we will choose a fet with this as low as possible. we need to drive fet at high enough joltage to minimize this.)
  • Diode forward voltage drop. (we will choose a diode with Vf as low as possible.)
  • Inductor winding resistance. (we will choose an inductor with R as low as possible. This is where most drivers skimp.)
  • Capacitor equivalent series resistance. (we will choose capacitors with R as low as possible.)
Switching losses:
  • Voltage-Ampere overlap loss. (we will minimize switching through our hysteris method and make sure that we control the fets gate fast. Also Totem pole should not go into heavy saturation.)
  • Frequencyswitch*CV2 loss. (choose fet with small gate capacitance)
  • Reverse latence loss. ( I think this is about the diode and it being a fast recovery type.)
  • Losses due driving MOSFET gate and controller consumption. ( make sure that the driving transistors are biased properly, otherwise minimise as best you can.)
  • Transistor leakage current losses, and controller standby consumption. (shouldn't apply to fets)


If you want to know a very good app. note on driving fets see this one by Laszlo Balogh .

I have decided on the NCL30160 from On Semi and because it seems the most efficient, even though the driver chip has an internal fet. The internal fet should simplify things.

The NCL30160 has a very low Rds on( resistance in ohms between drain and source when the fet is turned on.) , compared to its peers, so it was the clear winner.

In the data sheet is has a circuit diagram, I have lifted it straight into SteffShield.
We still have to select component values though, I will make a prototype and see what I can get out of it.

Attached Thumbnails

  • steff shield schematic version3.png



#26068 How to draw 220V motor

Posted by Magpie on 29 March 2012 - 12:43 AM in General Discussion

I am not sure how your current controller works but to do speed control of an AC induction motor you will need the equivalent of a Variable Speed Drive (VSD). These are prohibitively expensive, so you might have to look at a DC motor. If you have any details of your current motor controller, I would be interested to see what it does.



#26123 AnalogInput Repeatability

Posted by Magpie on 30 March 2012 - 05:43 AM in Netduino 2 (and Netduino 1)

I suspect its is noise on your voltage reference. I have got best results using a dedicated Voltage regulator into Aref. Use Vin as your input and ARef on your output. You also need a load resistor so that the voltage regulator's minimum drive is satisfied. (around 1k?) If you have a 7805 you could pad the output down to 3.3v using resistors before putting into AREF. ps. You will need a line of code to use ARef as well. Sorry gotto go. It's beer o'clock.



#26288 analog to digital conversion

Posted by Magpie on 03 April 2012 - 12:12 AM in General Discussion

The minimum specifications that you need to decide are: Max input voltage that needs to be measured. Min input voltage that needs to be measured. ( this can be negative) Max allowable error. in volts (error can be due to many things such as noise, resolution, non linearity and more) Number of measurements per second. Number of channels to measure. From these you can calculate your number of bits ADC, but add a couple of bits so that the adc resolution isn't actually the limitation on your error. Also from these someone should be able to suggest your analogue input circuitry and ADC devices. So if you can list answers to these someone may be able to help you further.



#26316 USB Audio Device - FINALLY WORKS!!

Posted by Magpie on 03 April 2012 - 12:44 PM in Project Showcase

It sounds really good? I like the sound of that. It's also good that you have had time to test and tweak things, this might take a lot of the headache out for us D class amp usb audio newbies. Is there an easy way to break into the Audio before the D amp? I might want to provide a more traditional set of Audio inputs as well. May the boards come soon.



#26318 Steff Shield

Posted by Magpie on 03 April 2012 - 01:16 PM in Project Showcase

I sorted out my credit card I just got some nice fat toroidal inductors delivered, I hope they are up to the job frequency wise.
I also got the ICs.

I am hoping that most of my efficiency will come from
  • using the hysteresis mode to limit the amount of switching,
  • the high quality inductors
  • and the low rds on of the led drivers.

It really seems to be coming along! Have you had any more thoughts in terms of the drivers themselves in terms of noise constraints?

I am fairly sure that if the cable run is short to the leds from the driver the noise wont be an issue.

The some applications may have longer runs, I am hoping by using twisted pair cables this wont be an issue. Cat 5/6 I think would work well.
I plan to drive the Led Driver with it's maximum pwm input frequency which is 20khz..
Whatever noise is present will be in harmonics of those 20khz. This may give electro-magnetic noise in the 20khz to 200khz region. I am not sure what equipment will be effected by this, if anybody knows please say so.

The other option was to use a non hysteretic mode and keep the buck converter in continuous mode all the time.
This would have less noise, possibly less efficiency and would take larger inductance. I think switching at around 200-500 khz would give near the best efficiency. I haven't found a great solution here, but I am sure there is one. Probably two external fets and a half bridge driver to give a Synchronous buck converter.

I will post an image of the pcb soon.



#26319 USB Audio Device - FINALLY WORKS!!

Posted by Magpie on 03 April 2012 - 01:25 PM in Project Showcase

Doesn't matter so much music can come out of PC anyway. Digital Radio, mp3s, movies. I probably don't need any more.



#26339 USB Audio Device - FINALLY WORKS!!

Posted by Magpie on 03 April 2012 - 10:46 PM in Project Showcase

What about standard HDMI inputs? Do have any idea if it is feasible to add them?




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.