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.

hanzibal's Content

There have been 386 items by hanzibal (Search limited from 26-June 23)


By content type

See this member's


Sort by                Order  

#50368 Empty post (by mistake)

Posted by hanzibal on 09 June 2013 - 01:18 PM in Project Showcase

EDIT: Admin, could you please remove this post.




#50594 Reading DS18B20 for Netduino using ATTiny2313

Posted by hanzibal on 17 June 2013 - 10:01 PM in Project Showcase

Very nice, I particularily like the idea of creating ones own slave helper circuits to overcome certain shortcomings of the Netduino (or other boards). Also,taking on a challange and thus make oneself learning something new (like C programming in your case) is both impressive and clever. Congratulations and thanks for sharing! I recently bought a PSoC 1 for creating my own little ASICs in a way similar to how you did and I too will have to learn a new "language" and a new technology. We'll see how that goes though...



#50553 How Many Motors can the Netduino Control?

Posted by hanzibal on 17 June 2013 - 03:29 PM in General Discussion

With the right controller, on, off, forward and backward (no speed control) would require 2 pins per motor. So depending on which Netduino you got, you could potentially control 8 to 11 motors and with an IO expander IC you could control many more.



#50584 looking for an old netduino 1 used ??

Posted by hanzibal on 17 June 2013 - 06:18 PM in Netduino 2 (and Netduino 1)

I got a Netduino Plus that can be flashed to behave the same as a regular Netduino (i.e. flash image w/o Networking) that I'm not really using if that works for you. I'm in Sweden which might render some additional shipping costs but I don't know how much.



#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

Yes, 8 bit mode would be faster - in 4 bit mode, you have to transfer the low and high nibble of each byte separately while as in 8 bit mode, you transfer a whole byte in each transaction. Will you be using a separate device (shift reg or similar) in between the Netduino the LCD and if so, may I ask which?



#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:

http://forums.netdui...067/#entry49614




#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.

 

http://xamarin.com/

 

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

I agree, a Netduino is not a good choise for those things and I don't even think the PI could cope. Any of those would probably be a really big detour from achieving what you want. As all of the bullets are pretty high level stuff, I'd recommend using a PC. Later, you could move to a micro or nano ATX if size is important. Of course, a Netduino could perhaps handle some of it but what's the point if you got s PC on the side. To be quite honest, I think the stuff you've mentioned taken together could take years to develop no matter what hardware you got.



#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)

Hi, That "first chance" is from an exception being caught in a try...catch and the second is an exception (the same?) not being caught. I suppose the error is what it is said to be, e.g. an object that unexpectedly has a value of null. Since the code has run for quite a while and the exception looks not to originate from your own code, my guess would be that it is due to unsufficient memory available or something else that builds up over time. I would think its hard for anyone to say much more about it having not seen your code.



#56471 Lcd 16x4 initialization

Posted by hanzibal on 26 February 2014 - 10:33 PM in General Discussion

Faith, what controller is it, got a datasheet you can point to?



#51251 Webserver and locking

Posted by hanzibal on 09 July 2013 - 12:58 PM in Netduino Plus 2 (and Netduino Plus 1)

You should use an interlocked exchange to change the value of the _serverReady varible. The Interlocked.Exchange method will replace the value and return the previous value in a single atomic (unbreakable) operation.
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

That makes it compile but it's not quite the same thing, I'd say it translates into this:
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

Hi! While looking for adjacent info, forum member emg mentioned this module: http://www.ebay.co.u...e-/270762577188 That and other alternatives was discussed in this thread: http://forums.netdui...for-rtc-backup/



#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.

Attached File  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):

mcp41100.PNG

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:

MCP41100_sine.JPG

 

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?  :lol: 

UART_sine.JPG

 

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

Very nice, at first I didn't see the Lumia but only an old 5110 but then I noticed the animated "fly by" arrows and reallzed the 5110 was never capable of that. Thanks for sharing! Edit: also, congrats on becoming a Nokia Developer Champion!



#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)

The shield is probably based around the Maxim MAX7456 chip. Sparkfun has a similar board based on the MAX7456: https://www.sparkfun.com/products/9168 That one has been discussed in these threads: http://forums.netdui...58-netduino-tv/ http://forums.netdui...-video-overlay/ I'm pretty sure I've seen it in other posts as well but I can't find that info right now. Hope that helps a little anyway.



#50681 Mocking Inputs?

Posted by hanzibal on 20 June 2013 - 11:58 PM in General Discussion

Instead of Unit-testing, you might consider "black boxing" by writing a corresponding set of interfaces through which data Is introduced. You would then make your fake implementations always returning fixed or random dummy data as needed. Later of course, you would make real (non-fake) implementations.



#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)

I would have thought it be unusual for an SPI slave device to ignore chip select but could be it only looks at the raising edge of the clock as long as !cs is asserted, i.e. performing and AND operation on the two. Maybe that is defacto standard procedure. The parameters you set do matter and controls how the Netduino SPI module manages the cs and clock pins respectively but I guess you knew that already.




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.