- Netduino Forums
- → Stefan W.'s Content
Stefan W.'s Content
There have been 153 items by Stefan W. (Search limited from 29-April 23)
#19213 TMP36 Temperature Sensor/SB Protoshield
Posted by Stefan W. on 15 October 2011 - 01:44 PM in Netduino 2 (and Netduino 1)
#26367 Redacted 00101100
Posted by Stefan W. on 04 April 2012 - 09:54 AM in General Discussion
#18240 High resolution light measurement
Posted by Stefan W. on 20 September 2011 - 01:11 PM in General Discussion
#18224 High resolution light measurement
Posted by Stefan W. on 20 September 2011 - 05:35 AM in General Discussion
#18246 High resolution light measurement
Posted by Stefan W. on 20 September 2011 - 02:13 PM in General Discussion
Adding more hardware to this project is a kludge since the chip on-board the Netduino can count these pulses, and I'm not going shopping for more components when I have what I need right here.
"Using a lot of time to build a custom firmware is a kludge since there is cheap hardware available that can measure the light intensity easily with the netduino, and I'm not wasting my valuable time building a custom firmware when there are easy alternatives available."
I just need to know how to be able to count the pulses up to 1MHz.
And we told you the easiest way to do that.
Is it possible to get this sensor working with native code on Netduino, or not? Can I build my own custom Netduino firmware using the porting kit and make this sensor work?
Yes, and if you use 15 minutes of your time (including the time that you take posting here) to do that in order not to go shopping for the components, you are working for less than minimum wage.
You are getting positive support, you just don't recognize it.If I am not going to get any further positive support on this forum, I guess I will have to look elsewhere.
#18161 High resolution light measurement
Posted by Stefan W. on 18 September 2011 - 08:40 PM in General Discussion
Just browsing the code and they use a NativeEventHandler - wondering if this is helping with the speed of the interrupts?
Regards,
Mark
No, that part of the code is redundant.
The method will also work on the netduino, as long as the frequencies don't get too high. From the datasheet you can see that the frequency can go up to at least 500khz (they don't provide an absolute upper limit, but a graph in it goes up to 1mhz) which means that there's one pulse every 2 µs, and that is too fast (i don't have absolute timings, but i recall interrupts taking at least 20µs).
#18151 High resolution light measurement
Posted by Stefan W. on 18 September 2011 - 06:40 PM in General Discussion
#18822 Help porting Arduino code for FM radio module
Posted by Stefan W. on 05 October 2011 - 03:47 PM in General Discussion
#18763 Help porting Arduino code for FM radio module
Posted by Stefan W. on 04 October 2011 - 12:26 PM in General Discussion
#19434 SPI, Netduino, and RGB LED Strip
Posted by Stefan W. on 20 October 2011 - 12:16 PM in General Discussion
#19384 SPI, Netduino, and RGB LED Strip
Posted by Stefan W. on 19 October 2011 - 01:18 AM in General Discussion
I made a testcase and hooked up the MOSI and SPCK pins to my scope, and got this:
(yellow clock, cyan data)
There is a 40µs pulse on the clock line that serves no purpose as far as I can tell ...
Does someone have an idea why this happens?
This won't have an effect if one writes all data at once, but if you write in groups of 3 bytes, this pulse will mess your data up. (data sent is 170,0,255 - 10101010,00000000,11111111 as bit patterns)
Used configuration:
SPI(new SPI.Configuration( Pins.GPIO_NONE, false, // SS active-low (irrelevant) 0, // No SS setup time(irrelevant) 0, // No SS hold time(irrelevant) false, // Clock low on idle (so it will be low for 500µs after transmission, which triggers the output of the leds) true, // Data valid on rising edge 100, // 2kHz clock rate (allows for 500µs between writes) SPI.SPI_module.SPI1 // SPI device 1 ) );/**/
#19471 SPI, Netduino, and RGB LED Strip
Posted by Stefan W. on 20 October 2011 - 08:08 PM in General Discussion
Okay, something odd. To the left is my netduino+, to the right my regular netduino, same code, both 4.1.0.0 if I can trust the VS output ("Assembly: Secretlabs.NETMF.Hardware.Netduino (4.1.0.0) ...").
The regular netduino has the additional clock pulse before CS goes down ... I don't have a mini, so I can't check that.
#19567 SPI, Netduino, and RGB LED Strip
Posted by Stefan W. on 21 October 2011 - 09:38 PM in General Discussion
#19381 SPI, Netduino, and RGB LED Strip
Posted by Stefan W. on 19 October 2011 - 12:06 AM in General Discussion
Your postData is a mess ...
What is the point of this?
for (int k = 0; k < 24; k++) { _data.Write(writeBuf); }
You're writing the same buffer 24 times?
As has been already stated, don't use multiple writes for each LED - use one buffer, write it, and be done with it ... this means a single Write call for updating the whole LED strip, no loops involved. The way you do it, there will be seemingly random delays between writes which will sometimes cross the 500us boundary and sometimes not, which will result in odd behaviour ...
#19563 SPI, Netduino, and RGB LED Strip
Posted by Stefan W. on 21 October 2011 - 08:53 PM in General Discussion
#19480 SPI, Netduino, and RGB LED Strip
Posted by Stefan W. on 21 October 2011 - 12:03 AM in General Discussion
#19273 SPI, Netduino, and RGB LED Strip
Posted by Stefan W. on 16 October 2011 - 09:20 PM in General Discussion
#19250 SPI, Netduino, and RGB LED Strip
Posted by Stefan W. on 16 October 2011 - 10:49 AM in General Discussion
#19357 SPI, Netduino, and RGB LED Strip
Posted by Stefan W. on 18 October 2011 - 11:05 AM in General Discussion
I might be doing something wrong, so let me ask if I have this part at least right:
1) For the LV input, I have designated Pin 5 (AD0). For the GND for LV, I am using Pin 4.
2) I have an infinite thread that is just constantly writing true via OutputPort on Pin 5. This should generate a constant 3.3V signal.
There is no point in "constantly writing true". You set it high once and then leave it at that ...
#19316 SPI, Netduino, and RGB LED Strip
Posted by Stefan W. on 17 October 2011 - 01:46 PM in General Discussion
#19332 SPI, Netduino, and RGB LED Strip
Posted by Stefan W. on 17 October 2011 - 09:47 PM in General Discussion
#20125 TLC5940 PWM Driver
Posted by Stefan W. on 03 November 2011 - 01:42 AM in Project Showcase
Hey Mark,
Got all the bits now I think... for the less able of us in regards wiring things up is there any chance you could perhaps fritz the tlc with the oscillator so it is possible to easily reproduce this?
PS hows the daisy chaining going on? And is it possible to reduce the number of netduino pins used (I refer to pins 8,9,10 in your code) for example can you provide high and low logic from a shift register such as stefans bit shift example?
Thanks
Andy
If you feel it's above you to easily reproduce the circuit, you could use another clock source. I think you should be able to use http://www.sparkfun.com/products/9116 for this, the two clock outputs should suffice to create the clock and the blanking signal.
#16721 FPGA shield alpha
Posted by Stefan W. on 14 August 2011 - 10:14 PM in Project Showcase
I'm very happy to report that we are now shipping the FPGA shield, with a new name: ÜberShield. Boards are in stock at Amazon.com, and more information can be found at the product website http://ubershield.com and in our forums at http://forums.ubershield.com. The final product specs are essentially the same as above, although the 50 MHz clock oscillator has been replaced with a 25 MHz model.
Just in case you know - what is the reason amazon rejects overseas shipping (to Germany)?
#17052 control dc motor with dual motor driver
Posted by Stefan W. on 25 August 2011 - 10:58 AM in Netduino 2 (and Netduino 1)
Edit: It seems that the driver already has builtin filtering capacitors, so you can ignore that bit.
#17143 control dc motor with dual motor driver
Posted by Stefan W. on 27 August 2011 - 02:06 AM in Netduino 2 (and Netduino 1)
What is the PWM frequency you are using?consider to power the chip (Vcc) with +3.3V instead of +5V. This allow much more compatibility for the input levels. If you take a look at the chip specs, they show as +3.5V (min) for the high-level, when powered at +5V. Since Netduino cannot reach output levels over +3.3V, that would be at limit. Another way is keep Vcc=+5V, and configure the Netduino outputs as open-drain.
- Netduino Forums
- → Stefan W.'s Content
- Privacy Policy