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.

Dave1374's Content

There have been 4 items by Dave1374 (Search limited from 30-March 23)


By content type

See this member's

Sort by                Order  

#63814 Netduino 3 and Electronic Brick of Relay

Posted by Dave1374 on 07 August 2015 - 02:56 PM in Netduino 3

Cpu.Pins is a NETMF enumeration which specifies the physical pin # on the microcontroller itself.
 

 

Chris, is there a case where one would use Cpu.Pins instead of Pins.GPIO_PIN_## ?

 

Should I change my 

static AnalogInput sensor = new AnalogInput(Cpu.AnalogChannel.ANALOG_0);

for

static AnalogInput sensor = new AnalogInput(Pins.ANALOG_0);



#63777 Netduino 3 and Electronic Brick of Relay

Posted by Dave1374 on 05 August 2015 - 06:53 PM in Netduino 3

Thanks for your input, Nevyn, but it turns out there was no voltage problem.

 

It works now.

 

Apparantly, I wasn't using the correct namespace.

 

I was using

static OutputPort relay = new OutputPort(Cpu.Pin.GPIO_Pin0, false);

Which uses the Microsoft.SPOT.Hardware namespace

 

And now I'm using

OutputPort test = new OutputPort(Pins.GPIO_PIN_D5, false);

Which uses ScretLabs.NETMF.Hardware.Netduino.Pins

 

Strange enough, this works just fine and is using the Microsoft.SPOT.Hardware namespace.

static AnalogInput sensor = new AnalogInput(Cpu.AnalogChannel.ANALOG_0);
double value = sensor.Read();

I'm still confuse between the two and don't understand their specific purpose.




#63738 Netduino 3 and Electronic Brick of Relay

Posted by Dave1374 on 01 August 2015 - 08:01 PM in Netduino 3

Trying to figure out how to plug things.

 

I'm using this relay http://www.robotshop...k-5v-relay.html

 

Let's call the screw connector : Connector 1

Let's call the white 4 pin connector : Connector 2

Let's call the black 3 pin : Connector 3

 

I want to use it to make a 12 volt valve work.

 

I striped red and black from a 12 volt adapter pluged in a wall.

 

Black and red goes to Connector 1 (tried both NC and NO)

 

Then I'm not sure if I'm supposed to plug netduino digital pin to Connector 2 or Connector 3, and output 12 volt from Connector 2 or Connector 3.........

 

I've tried both, didn't work.

 

Of course I've read the datasheet but it's not detailed enough for me and can't find any project with this exact relay.

 

Datasheet.pdf

 

schematic diagram of relay

 

my code :

static OutputPort relay = new OutputPort(Cpu.Pin.GPIO_Pin0, false);
relay.Write(true);

How do I wire this relay ?

 




#62612 Outdoor project, 70 feet, 5 walls and a shed.

Posted by Dave1374 on 11 May 2015 - 08:28 PM in Netduino 3

Hey,

 

I'm looking to do an outdoor project that needs to receive the signal from about 70 feet from the home router. Also, there are multiple walls (5?) between the router and the microcontroller.

 

Can it work with the Netduino 3 built in wifi or do I need to add an antena ?

 

The Netduino will be inside a shed.





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.