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.

DerekGn

Member Since 09 Jan 2014
Offline Last Active Apr 05 2015 06:03 PM
-----

Topics I've Started

NRF24L01P .net microframework 4.2 libary

21 March 2014 - 04:54 PM

Hi,

 

I have uploaded a class library for interfacing the Nordic semiconductor NRF24L01P radio module. It is available at https://mfnordic.codeplex.com/ in source code form.

 

Some documentation has been posted on my blog http://corememorydum...n-codeplex.html

 

Its a pretty easy library to use so I hope that its easy for someone to pick up and use.


A simple home montioring system

19 March 2014 - 09:24 PM

I have recently finished version one of a simple home monitoring system based around a Netduino Plus 2 and some custom made temperature and humidity sensors.

 

I have posted some more detailed info on my blog :http://corememorydum...version-10.html

 

The custom sensor

WP_20140319_001_thumb13.jpg?imgmax=800

 

Web UI

 

Monitoring_thumb%25255B1%25255D.png


Interrupt not firing

30 January 2014 - 01:51 PM

Hi,

 

I have recently purchased a Netduino plus 2 to use as a hub for a set of wireless humidity and temperature sensors that communicate using an NRF24L01P radio module.

 

I am in the middle of developing a class lib for the radio module. The issue that I have is that the interrrupt is not firing at all. I did some digging on the forum but I have yet to find any thing that could indicate an issue.

_radio = new Nrf24L01P(SPI_Devices.SPI1, Pins.GPIO_PIN_D0, Pins.GPIO_PIN_D1, Pins.GPIO_PIN_D2)                         {                             TransmitAddress = AppConfiguration.Instance.RadioAddress,                             Channel = AppConfiguration.Instance.RadioChannel,                             Mode = Mode.Transmitter                         };

The interrupt line from the device is connected to Pins.GPIO_PIN_D2.

 

The Nrf24L01P initalises the interrupt pin in the following way, only relevent code shown:

public Nrf24L01P(SPI.SPI_module spi, Cpu.Pin chipSelectPin, Cpu.Pin chipEnablePin, Cpu.Pin interruptPin)        {            _interruptPin = new InterruptPort(interruptPin, false, Port.ResistorMode.PullUp,                                              Port.InterruptMode.InterruptEdgeLow);            _interruptPin.OnInterrupt += HandleInterrupt;            .....        }

To trigger an interrupt I perform the following:

while (true)            {                _radio.Transmit(new byte[] {0,1,2,3,4},true);                Thread.Sleep(1000);            }

This should cause an interrrupt when the packet send retry is exhausted, there is no receive radio to ack the sent data.

 

The hardware wiring is pretty straight forward so I do not believe that this is an issue. I have verified the signal levels/connectivity as much as I can with a multimeter. I dont have a scope that I can use. I am pretty familiar with the characteristics of the radio module as I have built a sensor node with an AVR and it is functioning correctly.

 

I would like to know is there something I am overlooking wrt how the netduino/MCLR handles and raises interrupts that could cause this behaviour.

 

Thanks in advance


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.