- Netduino Forums
- → hanzibal's Content
hanzibal's Content
There have been 386 items by hanzibal (Search limited from 29-May 23)
#50188 USB CDC on Netduino Plus 2
Posted by hanzibal on 02 June 2013 - 02:19 AM in Netduino Plus 2 (and Netduino Plus 1)
#50933 Ultrasonic sensor code.
Posted by hanzibal on 29 June 2013 - 02:58 PM in Netduino 2 (and Netduino 1)
#50734 Turnkey RTC?
Posted by hanzibal on 23 June 2013 - 10:49 AM in General Discussion
#49662 Time Machine
Posted by hanzibal on 21 May 2013 - 12:22 PM in General Discussion
I should expect so and hopefully even runs NETMF !
...and it really was a time machine!
#49653 Time Machine
Posted by hanzibal on 21 May 2013 - 12:06 PM in General Discussion
Looks sweet, don't know what it can do but still only a question of how much I should place!
#49648 Time Machine
Posted by hanzibal on 21 May 2013 - 12:01 PM in General Discussion
Yes, where is it?
#49655 Time Machine
Posted by hanzibal on 21 May 2013 - 12:09 PM in General Discussion
I must say, I never expect a smartwatch - I was so wrong, so very wrong!
I didn't. Backed. :-)
How much?
#49590 Time Machine
Posted by hanzibal on 20 May 2013 - 08:23 AM in General Discussion
Awesome video! - must have taken months to combine all those separate videos into one.
EDIT: Too me, the video would suggest something with an LCD on it.
Secret labs releasing a flux capacitor for hobbyists????
Could be sort of....the mystics around this seem to thicken by the hour...check out this post:
http://forums.netdui...mepage/?p=49589
Code cracked!
#49646 Time Machine
Posted by hanzibal on 21 May 2013 - 11:59 AM in General Discussion
I actually edited the post on 1:57 but that doesn't show...I initally wrote 4 minutes, but you beat me to that
#49644 Time Machine
Posted by hanzibal on 21 May 2013 - 11:56 AM in General Discussion
No, its 3 minutes
#51320 Thinking Of Begining To Use Netduino
Posted by hanzibal on 10 July 2013 - 11:29 PM in General Discussion
#50370 The latest thing: Oscilloscope Art
Posted by hanzibal on 09 June 2013 - 01:31 PM in General Discussion
...and here's how I did it:
#50361 The latest thing: Oscilloscope Art
Posted by hanzibal on 08 June 2013 - 10:04 PM in General Discussion
#50791 The latest thing: Oscilloscope Art
Posted by hanzibal on 25 June 2013 - 10:31 AM in General Discussion
I used an MCP41100 digital pot for drawing the signal and here's the code for it:
#50789 String.Contains - Error with custom 'Contains'
Posted by hanzibal on 25 June 2013 - 08:53 AM in Visual Basic Support
Good, then it was as I suspected and also the solution was the one I suggested earlier:
...If so just substitute "greater or equal" for just "greater" or...
Also, I see you got rid of the redundant calls to IndexOf (as I also mentioned).
#50775 String.Contains - Error with custom 'Contains'
Posted by hanzibal on 24 June 2013 - 10:46 PM in Visual Basic Support
#50804 String.Contains - Error with custom 'Contains'
Posted by hanzibal on 25 June 2013 - 06:37 PM in Visual Basic Support
#50790 String.Contains - Error with custom 'Contains'
Posted by hanzibal on 25 June 2013 - 09:31 AM in Visual Basic Support
Also, IndexOf always returns -1 if not found.
In C# it does but are you sure it does so in VB too?
It doesn't seem to judging from the solution and VB is traditionally 1-based.
#50818 String.Contains - Error with custom 'Contains'
Posted by hanzibal on 25 June 2013 - 10:38 PM in Visual Basic Support
#50778 Strange data received from SRF02 I2C
Posted by hanzibal on 24 June 2013 - 11:13 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?
#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.
#50806 Strange data received from SRF02 I2C
Posted by hanzibal on 25 June 2013 - 07:07 PM in Netduino Plus 2 (and Netduino Plus 1)
#50680 Strange AnalogInput readings
Posted by hanzibal on 20 June 2013 - 11:52 PM in General Discussion
#50669 Strange AnalogInput readings
Posted by hanzibal on 20 June 2013 - 07:42 PM in General Discussion
- Netduino Forums
- → hanzibal's Content
- Privacy Policy