- Netduino Forums
- → hanzibal's Content
hanzibal's Content
There have been 386 items by hanzibal (Search limited from 17-June 23)
#50680 Strange AnalogInput readings
Posted by hanzibal on 20 June 2013 - 11:52 PM in General Discussion
#50514 How to read input from sound sensor?
Posted by hanzibal on 16 June 2013 - 12:17 PM in Netduino 2 (and Netduino 1)
#50071 PWM Constructor Trouble
Posted by hanzibal on 29 May 2013 - 06:27 AM in Netduino Plus 2 (and Netduino Plus 1)
#49964 PWM Constructor Trouble
Posted by hanzibal on 25 May 2013 - 06:22 PM in Netduino Plus 2 (and Netduino Plus 1)
Yes, I believe you should use the PWMChannel enum as you suggested yourself, I also noticed this at some point and I think it was introduced with v4.2 of the framework. Take a look at the code attached for the lcd driver class in the below post and you should be able to see how to use PWM. I believe the file is named lcd1602.cs or something like that.
http://forums.netdui...-and-ir-remote/
Good luck!
#50498 what material is Smartwatch made up of?
Posted by hanzibal on 15 June 2013 - 05:22 PM in General Discussion
That sentence pretty much summarizes what I disapprove of - the lack of balance. A crowd of yey-sayers can easily contribute in creating an unjustified hype over something that you are not allowed to be critical of. That's just does not seem right to me. How could it be a privildge to have an account, the account holders usually pay money, don't they? The priviledged ones ought to be the project owners. I can only imagine how much hard work it takes to get a project up there and reaching the monetary goals, but then again, it's not supposed to be easy either. Don't get me wrong now, I'm not against the Kickstarter concept in essence and also have nothing against the Agent smartwatch or any other Kickstarter project for that matter. It's the lack of balance I'm against. In fact, I really love the Kickstarter idea - it's a great way for people to get great products on the market using the common approval rather than that of a few capitalists and the kind of control they usually imply. There's so much great talent and potential out there and I think Kickstarter presents a fantastic opportunity for those to come into the open.Kickstarter has a very low tolerance for antagonists. Having an account on kickstarter is a privilege.
#51320 Thinking Of Begining To Use Netduino
Posted by hanzibal on 10 July 2013 - 11:29 PM in General Discussion
#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?
#56818 Help with line of code (var rowNumber)
Posted by hanzibal on 15 March 2014 - 03:43 PM in Netduino 2 (and Netduino 1)
Of curiosity, how come you need more than 16 digits?
#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.
#56225 Own IO Shield
Posted by hanzibal on 20 February 2014 - 10:26 AM in Project Showcase
#50859 Led.dispose() turns on led...why?
Posted by hanzibal on 27 June 2013 - 06:49 AM in General Discussion
#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
#49384 Outputting to I/Os in parallel
Posted by hanzibal on 13 May 2013 - 02:10 PM in Netduino Plus 2 (and Netduino Plus 1)
Hi!
I have some vague notion of reading somewhere that you could group pins together to form a parallel data bus on the version 2 boards but I can't find that info now and could be that was only a feature of the CPU itself and hasn't been made available to managed code yet. Perhaps someone can correct me on this?
So from what I know, the short answer would be no, I don't think there's any parallel bus.
...but - there are plenty of different solutions involving some external component. For example, with a shift register you can create a virtually parallel bus using SPI to drive it. You might want to look at the 74F166 which is an 8 bit bidirectional shift register:
http://www.nxp.com/d...heet/74F166.pdf
Also there's the PCF8574 8 bit quasi-bidirectional I2C I/O expander which is easy to use. Both of these ICs are available in breadboard friendly DIP16 packages.
For the latter, I've written a driver class and I2C bus manager that can be found in this post
#49485 Outputting to I/Os in parallel
Posted by hanzibal on 16 May 2013 - 07:46 AM in Netduino Plus 2 (and Netduino Plus 1)
Also, I'm currently working on a driver class for the MCP23S17 which is a 16 bit I/O Expander with SPI interface. With my software, you can use it pin by pin or group pins together to form one or more parallel buses. This chip is also bidirectional and has excellent per pin interrupt handling. I'll be posting the code when done.
#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:
#50361 The latest thing: Oscilloscope Art
Posted by hanzibal on 08 June 2013 - 10:04 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:
#50243 Static or Instance
Posted by hanzibal on 04 June 2013 - 09:30 AM in Netduino Plus 2 (and Netduino Plus 1)
#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.
#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.
#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.
#49461 New to this, I want to make sure I use the right tools
Posted by hanzibal on 15 May 2013 - 11:12 AM in General Discussion
Hi Dave and welcome to the forum,
I totally agree with Dave
Seems like a good kit to start with. As you know the Netduino Plus 2 has networking capabilities and can send emails and such. As for sound, you can use PWM to play a chime on that piezo buzzer.
Since you're an experienced developer, I'm sure you'll manage to put the door bell/mailer together.
Good luck!
#50681 Mocking Inputs?
Posted by hanzibal on 20 June 2013 - 11:58 PM in General Discussion
#50553 How Many Motors can the Netduino Control?
Posted by hanzibal on 17 June 2013 - 03:29 PM in General Discussion
- Netduino Forums
- → hanzibal's Content
- Privacy Policy