- Netduino Forums
- → hanzibal's Content
hanzibal's Content
There have been 386 items by hanzibal (Search limited from 11-July 24)
#51657 Make instance of module static
Posted by
hanzibal
on 24 July 2013 - 08:41 AM
in
Netduino Go
#51132 Serial Ram 23K640 Library
Posted by
hanzibal
on 06 July 2013 - 12:45 AM
in
Project Showcase
Hello hanzibal,
Well yes i will reach that approach soon
, actually i am planning to use this ram to work with my HttpLibrarV3 So that it stores all the requests and manipulates them from the ram instead of an internal buffer hence making alot of free memory for code use and variable allocation,
my next project will be itegrating the ram with the HttpLibrary
Cool!
I really love this kind of small IC drivers, they're just so nice to have when you need them. It's really stupid we don't have a central repository for these kind of things.
As an example, people (including myself) keep making those LCD drivers with multi channel I2C support over and over...
#51113 Serial Ram 23K640 Library
Posted by
hanzibal
on 05 July 2013 - 02:46 PM
in
Project Showcase
Nice!
Many stream type classes can be created by passing a System.IO.Stream to the constructor. I'm not sure for which this holds true but I think it goes for TextWriter, StringWriter, XMLWriter etc.
This would mean that if your class RamStream where to inherit from the System.IO.Stream class (and implement a few basic methods), you could pretty much store all kinds of data onto that nifty little chip.
For example, I think it would let you implement memory files so that you can pass in a such a "virtual file" to any method expecting a regular FileStream.
#50308 L293 H-bridge Control
Posted by
hanzibal
on 05 June 2013 - 09:08 PM
in
Netduino Mini
#56290 Extending Digital Input using game Controller
Posted by
hanzibal
on 23 February 2014 - 10:36 AM
in
General Discussion
#56297 Extending Digital Input using game Controller
Posted by
hanzibal
on 23 February 2014 - 01:32 PM
in
General Discussion
ushort my16bits = bus.Value;Here's the driver with some examples: http://forums.netdui...17-io-expander/ The driver can also alert you with interrupts whenever any of the 16 pins changes.
#56684 Netduino & RF transmitter to pair with and control smart electricity socket
Posted by
hanzibal
on 06 March 2014 - 09:22 PM
in
Project Showcase
At least I think I am - of mine, not yours, that is :-)
#56670 Netduino & RF transmitter to pair with and control smart electricity socket
Posted by
hanzibal
on 06 March 2014 - 11:35 AM
in
Project Showcase
I've done a fair deal of similar RF control stuff too and found it very rewarding.
Very interesting and great news!
I actually didn't think Netduino was fast enough for bit-banging this (not even Netduino 2) and thought you had at least use SPI for this.
The natural next step would be adding a webbserver so that you can use a smartphone as a remote control but I guess you already thought of that.
#56307 Extending Digital Input using game Controller
Posted by
hanzibal
on 23 February 2014 - 05:38 PM
in
General Discussion
#50897 Main Thread Hangs
Posted by
hanzibal
on 28 June 2013 - 02:35 PM
in
Netduino Plus 2 (and Netduino Plus 1)
The scheduler may have problems switching between threads since they are all running in tight loops. Try yielding briefly in the loop by calling Thread.Sleep(1) once in a while.
#50909 Main Thread Hangs
Posted by
hanzibal
on 28 June 2013 - 11:56 PM
in
Netduino Plus 2 (and Netduino Plus 1)
#50802 Strange data received from SRF02 I2C
Posted by
hanzibal
on 25 June 2013 - 06:01 PM
in
Netduino Plus 2 (and Netduino Plus 1)
Yes, two 10k resistors i parallel should correspond to a single 5k resistor. Well, it was just a thought.
Looking again at your code and comparing to the user manual you referred to, it seems you're are doing the reads wrong. You should read location 2 and 3 separately to get the high and low byte respectively. As it is now, you issue a series of four transactions where the read buffer gets overwritten by the the second read transaction. Your read buffer is 2 bytes but I think it only need be one byte since first you should read the high byte and then you read the low byte (the order does not seem to matter).
Also, I believe the location counter (address counter) auto-increments for each read performed so you could probably do something like this instead (here, the read buffer is still 2 bytes long):
xActions = new I2CDevice.I2CTransaction[]{ I2CDevice.CreateWriteTransaction(new byte[] { 0x02 }), I2CDevice.CreateReadTransaction(RegisterValue),}int c = srf02.Execute(xActions, 1000);Debug.Assert(c > 0, "I2C write/read failed!");int val = (RegisterValue[0] << 8)|RegisterValue[1];
As you know, the Netduino is 5V tolerant and I wonder if the the LLC is really necessary - have you tried without it?
#50358 L293 H-bridge Control
Posted by
hanzibal
on 08 June 2013 - 10:30 AM
in
Netduino Mini
Ok, just modify the erroneous line like this:
// Defines the HBridge IC on the correct pinsHBridgeMotorDriver = new HBridge(PWMChannels.PWM_PIN_20, Pins.GPIO_PIN_19, PWMChannels.PWM_PIN_18, Pins.GPIO_PIN_17);
It works for me (Netduino mini with framework 4.2) and should for you too I hope.
EDIT: Works = the code compiles but I don't have a H-brigde driver and forgot to check with the scope.
#50345 L293 H-bridge Control
Posted by
hanzibal
on 07 June 2013 - 09:57 AM
in
Netduino Mini
#50793 Strange data received from SRF02 I2C
Posted by
hanzibal
on 25 June 2013 - 11:36 AM
in
Netduino Plus 2 (and Netduino Plus 1)
I agree, the byte order is equal to that of the Arduino code.
In my experience floating pins can sometimes result in strange phenomena and I try to avoid them even if it theoretically shouldn't matter. I normally use 100k pull-downs on unused pins though.
You could try using stronger I2C pull-ups, say 4k7 as see if that helps.
#56564 How to convert hex value stored in string to binary in string?
Posted by
hanzibal
on 01 March 2014 - 09:11 PM
in
Visual Studio
Might be possible to use something like int.Parse(...) in the other direction?
#56613 Help with line of code (var rowNumber)
Posted by
hanzibal
on 04 March 2014 - 12:35 AM
in
Netduino 2 (and Netduino 1)
The enum is conceptionally mistreated. They way they are defined, they are not meant for you to apply arithmetics operations onto them.
Surely, as the corresponding enum values just so happens to be 0,1,2,3...etc because of the order in which they appear, you consecuently happen to get "digit1" by adding a one to "digit0". However, when adding a one to "digit7" you suddenly get "DecodeMode" instead of "digit8" which is not defined.
See what I mean?
#56729 Help with line of code (var rowNumber)
Posted by
hanzibal
on 09 March 2014 - 08:23 PM
in
Netduino 2 (and Netduino 1)
Actually, the MAX 7219 and 7221 are 8 digit driver chips but they support daisy-chaining while the driver class apparently does not.
https://www.sparkfun...219-MAX7221.pdf
The solution is to modify the driver so that it supports cascading.
#56470 Gainspan WiFi module
Posted by
hanzibal
on 26 February 2014 - 10:22 PM
in
General Discussion
#50480 How to get Rid of DB9/MAX232 Interface
Posted by
hanzibal
on 14 June 2013 - 11:25 AM
in
Netduino Mini
I was unaware of the need for inversion, I always use a regular Prolific USB to RS232 cable (think it has the 2303 chip) for flashing tinybooter onto my minis without problems (have used two different ones over time).
Since I've never had to interface with any RS232 devices in my apps, I've only used the TTL UART (pins 11 and 12) for deployment and debugging using a classic FTDI USB to 3V3 TTL UART cable which also supplies 5V to pin 21.
Are you flashing the RS232 version of tinybooter in order to free up the TTL UART for application use?
#50672 Can you add wifi to mini?
Posted by
hanzibal
on 20 June 2013 - 08:46 PM
in
Netduino Mini
http://processors.wi...Interface_(SPI)
This is the board I got:
http://www.lsr.com/d...ts/330-0086.pdf
It's based on the cc3000 chipset so I guess it would work using the same driver as your cc3000 board, if there was one that is...
Hmm...maybe one should get busy creating a managed driver from porting TIs driver looking at the Arduino code you referred to. Great deal of work involved though and probably a lot more than I can afford to spend right now but it itches ;-)
#50650 Can you add wifi to mini?
Posted by
hanzibal
on 20 June 2013 - 06:37 AM
in
Netduino Mini
Have you found some SPI docs or are you planning on porting the MSP430 code?
About a year ago, I got one of the earlier wifi modules from TI/LSR and haven't found any SPI docs for that either.
http://www.ti.com/pr...RMAL&mpref=full
A big advantage of these boards over most others is that they use SPI instead of UART which is typically much slower. There are also the Redpine modules which look very nice:
http://www.semicondu...idproduct=43957
#50507 How to get Rid of DB9/MAX232 Interface
Posted by
hanzibal
on 16 June 2013 - 01:43 AM
in
Netduino Mini
#50495 How to get Rid of DB9/MAX232 Interface
Posted by
hanzibal
on 15 June 2013 - 07:38 AM
in
Netduino Mini
#50476 Date from netduino plus
Posted by
hanzibal
on 14 June 2013 - 06:19 AM
in
Netduino Plus 2 (and Netduino Plus 1)
Could you please explain in more detail, what you need to do exactly and why, perferably with a brief description of the overall purpose and goal of your project. One-liners tend to be cryptic, especially since english might not be you first language.
- Netduino Forums
- → hanzibal's Content
- Privacy Policy