EDIT: Admin, could you please remove this post.
- Netduino Forums
- → hanzibal's Content
hanzibal's Content
There have been 386 items by hanzibal (Search limited from 26-June 23)
#50368 Empty post (by mistake)
Posted by
hanzibal
on 09 June 2013 - 01:18 PM
in
Project Showcase
#50594 Reading DS18B20 for Netduino using ATTiny2313
Posted by
hanzibal
on 17 June 2013 - 10:01 PM
in
Project Showcase
#50553 How Many Motors can the Netduino Control?
Posted by
hanzibal
on 17 June 2013 - 03:29 PM
in
General Discussion
#50584 looking for an old netduino 1 used ??
Posted by
hanzibal
on 17 June 2013 - 06:18 PM
in
Netduino 2 (and Netduino 1)
#52116 Interrupts
Posted by
hanzibal
on 13 August 2013 - 10:21 AM
in
Netduino Plus 2 (and Netduino Plus 1)
The STM32F405xx datasheet says "Up to 140 I/O ports with interrupt capability" depending on package:
http://www.st.com/st.../DM00037051.pdf
They don't explicitly say that you can enable interrupts on all ports simultaneously and I strongly doubt you can.
The reference manual says the interrupt controller has 82 interrupt vectors:
http://www.st.com/we.../DM00031020.pdf
Since the interrupt vector table only has 82 entries of which many are used by peripherals, there's no way all GPIOs can be configured for external interrupts. This is confirmed in chapter 10.2.5 that says there are 16 external interrupts.
The NP2 has has a maximum of 22 GPIOs and it seems only any 16 of these can be used with interrupts.
#56338 Hitachi HD44780 LCD controller
Posted by
hanzibal
on 24 February 2014 - 02:32 PM
in
General Discussion
#52408 debug success but output doesn't showing
Posted by
hanzibal
on 28 August 2013 - 06:44 AM
in
Netduino Plus 2 (and Netduino Plus 1)
Hi there and welcome to the Netduino forums. Debug messages should show but I suspect you debug output is direct to the immediate Window. Either switch to immediate window while debugging or change Visual Studio settings to direct debug message to the output window.
#50548 file on SD card from Ethernet
Posted by
hanzibal
on 17 June 2013 - 01:50 PM
in
Netduino Plus 2 (and Netduino Plus 1)
Hi michel!
What is your setup?
Do you have a Netduino Plus attached to your network where the SD card you wish to modifiy is inserted into the CD card slot of the Netduino?
What kind of device needs to modify the SD card, is a PC, another Netduino or some other kind of network attached device?
#50658 start a new line in a TXT file
Posted by
hanzibal
on 20 June 2013 - 12:17 PM
in
Netduino Plus 2 (and Netduino Plus 1)
I usually use newline 'n' only and not vertical tab 'r' and as far as I remember, it should work.
Of course, when all else fails, you can always issue multiple calls to WriteLine().
#49615 How use MuxShield.MuxMode.DigitalInput
Posted by
hanzibal
on 20 May 2013 - 11:05 PM
in
Netduino Plus 2 (and Netduino Plus 1)
Please refrain from duplicate posts, you already have this one going:
#49491 HT12E and HT12D
Posted by
hanzibal
on 16 May 2013 - 11:48 AM
in
Netduino Plus 2 (and Netduino Plus 1)
Hi!
I suppose that would depend on the rate at which data must be processed and how lengthy transmissions are.
I think it's possible to emulate the decoder using a interrupt pin connected to the data out of the RF receiver since interrupts are correctly time stamped and buffered until your app is ready to examine them. However, if the reception is continuous or comes in too lengthy bursts, the interrupt buffer would overflow and cause communication to fail miserably.
It's probably harder to emulate the encoder depending on the modulation and data rate but maybe it could be done using SPI.
Could you perhaps refer to a description (or picture) on how data is modulated outside the RF link?
#51705 Anyone tried XMarine?
Posted by
hanzibal
on 26 July 2013 - 10:35 AM
in
General Discussion
This is not directly related but looks an interesting way to build smartphone apps for interfacing with your Netduino, for example via sockets over a network.
As I understand, XMarine would enable you to use Visual Studio for writing apps for both Android and iOS devices.
To me it sounds very cool. Has anyone of you guys tried it?
#51320 Thinking Of Begining To Use Netduino
Posted by
hanzibal
on 10 July 2013 - 11:29 PM
in
General Discussion
#50151 Analog.ReadRaw unhandled exception in SecretLabs.NETFM
Posted by
hanzibal
on 31 May 2013 - 07:56 PM
in
Netduino Plus 2 (and Netduino Plus 1)
#56471 Lcd 16x4 initialization
Posted by
hanzibal
on 26 February 2014 - 10:33 PM
in
General Discussion
#51251 Webserver and locking
Posted by
hanzibal
on 09 July 2013 - 12:58 PM
in
Netduino Plus 2 (and Netduino Plus 1)
int _serverReady = 1;if(Interlocked.Exchange(ref _serverReady, 0) == 1){ // process request . . . // done, open unlock the door _serverReady = 1;}else{ // server busy}As indicated above, I think you have to declare _serverReady as an integer for this work. You might want to use the volatile modifier on your variable declaration but I don't know if that feally matters in .NETMF. There might also be a way to configure the listener as synchronous so that the server will never attempt to process requests in parallel. Could be this feature is not available in .NETMF, I'm not sure.
#56349 bitwise comparison & IF condition
Posted by
hanzibal
on 24 February 2014 - 09:45 PM
in
General Discussion
if ((this_led_color & mask) != 0) SDI.Write(true);else SDI.Write(false);Checking for equality to mask is no longer the same when mask has other than a single bit set.
#50734 Turnkey RTC?
Posted by
hanzibal
on 23 June 2013 - 10:49 AM
in
General Discussion
#50369 Driver for the MCP41100 digital potentiometer
Posted by
hanzibal
on 09 June 2013 - 01:20 PM
in
Project Showcase
Hi all!
The MCP41100 is a programmable digital potentiometer with SPI interface and comes in a breadboard friendly DIP-8 package. You can set it to any value between 0 (zero) and 100 kOhm in 256 steps. You can of course tweak it into doing other ranges by wiring in series or in parallel with other (fixed) resistors.
For another project, I needed to produce a variable voltage between 0 (zero) and 5V so I made a simple driver class for it and thought I'll share it with you. Attached you'll find the driver and demo app. It is written for my beloved mini but works with others too requiring only small modifications.
miniMCP41100.zip 4.51KB
7 downloads
You simply use it like this:
var r = new MCP41100(new SPI.Configuration(Pins.GPIO_PIN_17, false, 0, 0, false, true, 10000, SPI.SPI_module.SPI1));// set half resistance (i.e. ~50k)r.Level = 128;// set zero resistancer.Level = 0;// ...or you can use the Resistance property to set ~50k like sor.Resistance = 50000;// set ~100kr.Resistance = 100000;
The demo app assumes the IC has been wired as a voltage divider like in this schematic (Pw = output):
When connected that way, you can use it as an a very slow "arbitrary signal generator" meaning you can pretty much draw any signal over time like I did in this post or a nice sine wave if you prefer that:
I guess you could think of the MCP41100 like a "poor man's DAC" but since the mini does not have a DAC, it can actually very useful at times as it's also much simpler than to use PWM.
Enjoy!
EDIT: Note that the MCP41100 is not suited for signal generation in general.
#50385 Driver for the MCP41100 digital potentiometer
Posted by
hanzibal
on 09 June 2013 - 07:19 PM
in
Project Showcase
Yes, I even mentioned PWM in the end of my post. Naturally, the MCP41100 is not at all intended for signal generation (for many reasons), it just seemed like a "fun thing" as opposed to being something of practical value.
For debugging, that simple type of signal can be good. You just hook up a voltmeter, or a lead to a multi-channel voltage data-logger, and you can get valuable information.It's also much easier than a serial output. And, a handheld voltmeter is small and easy to use, and to look at signals/test-points.
That's a good tip!
Speaking of PWM, below is a sine(-ish) wave form that I generated using a UART and an LP-filter. It was done using a regular USB to TTL UART converter cable with code running on the PC in an attempt to produce audio - see how beautifully smooth it is?
Also, I was actually thinking of doing PWM audio on an MSP430 but someone beat me to it:
#49420 Old school ft. New school: Snake with a Lumia 920 controlling a 5110 LCD usin...
Posted by
hanzibal
on 14 May 2013 - 11:42 AM
in
Project Showcase
#50660 Vin
Posted by
hanzibal
on 20 June 2013 - 12:18 PM
in
Netduino Plus 2 (and Netduino Plus 1)
If you mean what the pin is used for, I believe it is for supply voltage 7.5 - 9V.
#50732 Netduino + Video Experimenter shield
Posted by
hanzibal
on 23 June 2013 - 08:26 AM
in
Netduino Plus 2 (and Netduino Plus 1)
#50681 Mocking Inputs?
Posted by
hanzibal
on 20 June 2013 - 11:58 PM
in
General Discussion
#50462 Netduino Plus 2, SPI interferes with Networking?
Posted by
hanzibal
on 13 June 2013 - 10:55 AM
in
Netduino Plus 2 (and Netduino Plus 1)
- Netduino Forums
- → hanzibal's Content
- Privacy Policy