netiness - Viewing Profile: Posts - Netduino Forums
   
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.

netiness

Member Since 21 Sep 2013
Offline Last Active Jul 02 2017 08:26 PM
-----

Posts I've Made

In Topic: TFT LCD (ILI9341)

04 May 2014 - 12:34 PM

Probably mine, from https://code.google....tduino-spi-tft/. And yes, a bit slow. I also collected info from various docs, good to see it can be used.

--Kjetil

In Topic: Emulator, can it handle OneWire ?

13 December 2013 - 08:05 AM

In the attached zip-files I've included a NP2 project (DS18B20)which blinks the Led and then tries to read the temperature from a DS18B20 sensor. I've also included my naive emulator, which exposes the GPIO ports with leds so that you can see the state of the ports, and checkboxes which lets you set the state of a port. Also, there is a 1-wire slave implementation for the DS18B20 sensor (not fully implemented though), and the start of a I2C port extender. To use it, compile the emulator project, and in the Netduino project property pages for .NET Micro Framework add reference to My_NP2_Emulator as the emulator.

 

The emulator is a bit of a  quick hack, but it has helped me; so I hope it can be of use for someone else too.

 

Kjetil


In Topic: Emulator, can it handle OneWire ?

06 December 2013 - 01:59 PM

No one using the emulator ? Or trying/wanting to do OneWire ?

 

Little would I know how difficult this would be. One obvious answer as to why there is no 1-wire in the emulator is because of timing issues. The bus requires transitions with pulsewidths 15µs or less. Also, since there is no synchronization possibilities between the emulator and the NetMF code running, we are stuck. Or are we ?

 

I wanted to try it, see if it could be done;  so I embarked on an interesting and fantastic voyage.

The sources for the 1-wire master is in the NetMF sources, and examples can also be found at the Maxims integrated site. What's missing is sources for an emulated client. Since the protocol is well documented (http://www.maximinte...ndex.mvp/id/126) it should be relatively to implement a client.

 

There are some emulated 1-wire slave implementations for PIC chips and Arduino, one good example implementation can be found at

http://www.fabiszews...t/1-wire-slave/, and I have used this as the base for my 1-write slave implementation.

 

In short, I've managed to simulate this somehow, but it is really sloooow. It takes some seconds to send/receive a byte, so this might better serve as a proof of concept rather than a usable component. Anyway. So far the master can reset the bus, and issue a search command; and my emulated DS18B20 slave respond with a (fake) serial number. I'm not there yet, but I believe I should be capable of sending temperatures back to my Netduino program through the emulator really soon.

 

If anyone wants this I can make the sourcecode available when it is finished.

 

Kjetil


In Topic: Programming using the ! modifier

21 November 2013 - 03:58 PM

Since led2 is an OutputPort, you will have to write

led2.Write(!led1.Read());

led2 and led are instances of the [color=rgb(40,40,40);font-family:helvetica, arial, sans-serif;]Microsoft.SPOT.Hardware.OutputPort class; look up the public methods and properties as to what you can do with them.[/color]

 

Kjetil


In Topic: Need help with TFT display and SPI

24 October 2013 - 05:26 PM

Are there anyone else using this kind of display (ILI9341) via SPI ? What clock rates can you use at maximum ? With my current configuration I cannot go above 1311Khz, making the display really slow. I don't have a real understanding of the various initialization parameters for the display, but has hacked together what information I've found on the net. A sample naive project can be found at http://code.google.c...tduino-spi-tft/. The NP2 should be able to pump out data faster than this, right ? Any suggestions are welcome.

 

Thanks,

 

Kjetil


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.