I attached the driver code to the first post.
Can you post some sample code that uses your driver?
I can't seem to get it to work or initialize the device.
  | ||||||||||||||
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.
gismo's ContentThere have been 26 items by gismo (Search limited from 10-May 23) #63021 4X20 LCD display with I2C InterfacePosted by gismo on 02 June 2015 - 07:47 PM in Project Showcase
Can you post some sample code that uses your driver?
I can't seem to get it to work or initialize the device. #63444 Introducing Llilum, the native-compiled (NETMF) proof of conceptPosted by gismo on 09 July 2015 - 04:16 PM in General Discussion I'll keep my fingers crossed, but I won't hold my breath... #63439 Introducing Llilum, the native-compiled (NETMF) proof of conceptPosted by gismo on 09 July 2015 - 03:03 PM in General Discussion So, does this mean we would have access to input capture and direct access to counters/timers on the chip? #63358 I2C Bus Problem - DebuggingPosted by gismo on 03 July 2015 - 12:57 AM in General Discussion I'm resurrecting this....
Fast forward... I'm running netmf4.3 and I've Isolated the issue with the ATTiny85 running as I2C slave mode. This communicates just fine with an arduino, but works about 5% of the time with the Netduino. I can't necessarily repeat the steps to get it to work. When it doesn't work, sometimes the SDA and/or SCL are stuck pulled LOW. I don't know how this happens. I've tried disconnecting the bus but the only thing that resolves this is to reboot the Netduino. This also happens when there are other devices on the bus causing all I2C to fail. I do know that the ATTiny Code uses clock stretching as well. I really have to dig deeper into the I2C Slave Code, but quite hairy at this point. #63963 I2C Bus Problem - DebuggingPosted by gismo on 24 August 2015 - 03:33 PM in General Discussion
@Tony, I've also experienced this where SCL/SDA are locked high.BTW, which Netduino board are you using?
@Gigios, do you have a scope?(you can use an arduino as a basic scope and/or logic analyzer). Also, at the very least, when your device doesn't work, can you put a multi-meter on the SDA/SCL lines and see if they are high or low? #63964 I2C Bus Problem - DebuggingPosted by gismo on 24 August 2015 - 03:35 PM in General Discussion
^^ what he said. Your diagram shows an arduino SDA/SCL hookup. #63779 netduino driver for the AdaFruit SSD1306 OLED displayPosted by gismo on 05 August 2015 - 09:03 PM in Project Showcase I'm currently working on support for the very similar SH1106 OLED driver. I was able to get I2C version working with very few modifications, but I cannot get the SPI version to work correctly(which I prefer at this point). Anyone want to collaborate on getting SH1106 working? #63353 ATTiny85 talking to Netduino?Posted by gismo on 02 July 2015 - 09:20 PM in General Discussion I hope this thread isn't dead.. I've been off/on struggling to get some ATTiny85 chips to comminicate via I2C with a netduino.... They seem to work fine when doing ATTiny arduino to Arduino, but there must be some subtle differences in the I2C protocol buried in the ATTtiny I2C firmware that NetMF/Netduino don't like..I still haven't found it.
Larsey/Frode, you still working with the ATTinys? #63431 Does Netduino 4.3 Support Clock Stretching by I2C Slave Devices?Posted by gismo on 09 July 2015 - 02:25 AM in General Discussion #64107 Double.ToString() Not working correctlyPosted by gismo on 12 September 2015 - 05:23 PM in General Discussion
No luck. Same result...I switched back to my GHI Cerb device and parameters F2, N2, G2 etc all work. #64109 Double.ToString() Not working correctlyPosted by gismo on 12 September 2015 - 07:07 PM in General Discussion @JoopC I wish it were true....for my device. Are you testing on a netduino 2?? #64105 Double.ToString() Not working correctlyPosted by gismo on 12 September 2015 - 01:01 PM in General Discussion I'm trying to show two decimal places and using the limited format specifiers it's not working. I'm trying this loop and I get the same result: 22.5034567...
double myDouble = 22.503456785478; string[] formats = new string[]{"","f2","g2","n2", "d2", "0.00","N2"}; for (int i = 0;i<formats.Length;i++) { LCD.Clear(); LCD.Write(formats[i] + ": " + myDouble.ToString()); //22.50 expected result Thread.Sleep(1000); } Aside from writing a custom function to do this, is this a bug? Anyone else experience this? N2 netmf4.3
#63311 Writing a better class to Manage EEPROM Chip - Guidance/Advice WantedPosted by gismo on 30 June 2015 - 04:21 PM in General Discussion Hey Everyone,
I've been racking my brain over writing a better class to manage an I2c EEProm chip. The chip works and all of the basic commands are working, but to really implement it in a way that's legible and useful has been tricky. I'm looking for an advice on how to compose a class that will make using the EEProm chip easier to work with.
A few inputs/requirements,
I'm trying to create something simple and scalable..Adding additional data-points should be simple.
I've looked at type-safe enum patterns and a few other enum related code to try to accomplish this, but I'm looking for a little more guidance here. Maybe an enum with arrays linked to them?
Any advice would be appreciated!
#64061 Dinosaur PropPosted by gismo on 09 September 2015 - 12:42 PM in General Discussion #63736 Netduino 2 4.3 Won't Attach To Debugger and Board Keeps ResettingPosted by gismo on 31 July 2015 - 10:18 PM in General Discussion
This is as far as I get when trying to debug. Then I hear the USB device sound toggle 3-4 times and then it looks like visual studio gives up.
Things I've tried:
Any other ideas?
#64104 Netduino 2 4.3 Won't Attach To Debugger and Board Keeps ResettingPosted by gismo on 12 September 2015 - 12:36 PM in General Discussion
I'm using VS2012. The issue mysteriously disappeared for a while, but now it's back...Sounds like a hack with MFdeploy...Other than upgrading..I wonder what else I can do. #63197 Netduino is running slower in certain classes than others(Video)..Why?Posted by gismo on 18 June 2015 - 02:11 AM in General Discussion I've attached a video of the behavior.
Video Clip: (Yes, I know I have a few typos in the menu item counter )
Some thoughts, the scrolling text in the "Menu" is within the interrupt handler while the other code where there is scrolling text is not within the interrupt handler. Could that have any effect? I also might have some locking going on, but I'm not sure how to really diagnose it. #63201 Netduino is running slower in certain classes than others(Video)..Why?Posted by gismo on 18 June 2015 - 03:38 AM in General Discussion Thanks Chris... I had and extremely "tight loop"... In my Menu State my "Main Task" Method. I originally had a while(true){} but then there was no way to break out..so I just removed it all..creating that tight loop. The Main program constantly calls the Main Task of the current state.
To fix it, I just put: Thread.Sleep(Timeout.Infinite); into the main task and that fixed it!
EDIT: Not totally fixed yet..I can't seem to get out of the Menu..I think I need to wake the thread up when I get the interrupt... #63203 Netduino is running slower in certain classes than others(Video)..Why?Posted by gismo on 18 June 2015 - 01:16 PM in General Discussion
This works and is dead simple! ...I have to wonder if there's a better way to do it with Threading...And also which approach is better? (Also, would be nice to get my toes wet with some threading... #63296 Electronics/Breadboarding 101Posted by gismo on 29 June 2015 - 02:16 PM in General Discussion Hey and welcome!
What I find that helps me is you can replace "arduino" with "netduino" in your web searches...or by adding "arduino" to your searches. There tends to be a heap of useful information in the Arduino community that is totally applicable to a Netduino. Instructables also has great tutorials for Arduino as well that could be translated to Netduino.
I think there're plenty of resources out there on microcontroller circuits and you could dive right in to some projects! Have fun! #63035 Troubleshooting LCD With PCF8575 I2C BackpackPosted by gismo on 03 June 2015 - 08:45 PM in General Discussion Using this device:
I've converted/ported the driver from here to c#: 2. https://bitbucket.or...ystal/downloads
I've also referenced some code from here: 3. http://forums.netdui...-and-ir-remote/
(The code is a work in progress, and will be commented properly when completed) Also attached is the modified I2C bus class that I use(and have used with other devices)
Update: I fixed a few kinks in the code and it's working! Code Attached LCD.cs 14.81KB 6 downloads
I'll be updating the code to implement more of the methods from the arduino driver and will post in the projects forum.
#63038 Troubleshooting LCD With PCF8575 I2C BackpackPosted by gismo on 03 June 2015 - 09:30 PM in General Discussion Issue resolved. #63533 Hey Chris, I sent you a PM about a week ago...Posted by gismo on 15 July 2015 - 12:54 PM in General Discussion Hey Chris,
I sent you a PM about a week ago and I just wanted to make sure you've received it.
Please delete this post
Thanks! #63547 Hey Chris, I sent you a PM about a week ago...Posted by gismo on 15 July 2015 - 08:16 PM in General Discussion Thanks Chris. should I send one of my ATTiny devices do you for testing? #63000 Hardware Selection: LCD Screen/Display With "easy" Interface SPI or I2CPosted by gismo on 01 June 2015 - 08:18 PM in General Discussion Hey Everyone,
Been searching the forums and found a lot of different resources/links to different drivers.. I'm looking for a simple to implement and preferably easy hookup to SPI/I2C bus.
I'm looking for a LCD like a 16x2 display that I can update/refresh somewhat quickly/smoothly
i like this product: http://www.adafruit.com/products/399but needs the backpack http://www.ebay.com/...mMakeTrack=true
Thanks!
| ||||||||||||||
|
||||||||||||||
This webpage is licensed under a Creative Commons Attribution-ShareAlike License. | ||||||||||||||