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.

JacopoMTK

Member Since 21 Apr 2012
Offline Last Active Aug 10 2013 07:01 PM
-----

Topics I've Started

How to supply my project (led+potentiometers)

18 July 2013 - 09:54 AM

Hi everyone,

 

I'm building a midi controller with Netduino Plus 2 and I'm at the point of powering up the project but i need to ask some questions firsts.

 

Those are the components used in the project:

-5x Switch with led [5-12v]

-10x 10kOhm Potentiometer

-2x 7-Segment Display

 

I'd like to know if the Netduino +2 is capable of powering up the whole thing trough the 3.3v line without getting damaged (assuming the led in the switch will light up even with 3.3v).

 

Also i'd like to know a thing about the potentiometers:

If i will use a 9v alkaline battery to power up the netduino (and then connect the potentiometers to it),will i get different reading while the battery keeps draining or the regulated output of the netduino will continue to give me 3.3v?

 

Thanks in advance.


Can't get right value from accelerometer MMA7361

03 December 2012 - 09:33 PM

Hi everyone,

first of all i found and tried the solution in thistopic but it doesn't seems to work.

I'm trying to read the value of x,y,z axis from and MMA7361 accelerometer,the problem is that i keep reading nearly-equal values even if i move the accelerometer in any position.

How i connected it:
Vcc = netduino 3v3 port;
Aref = Vcc;
Gnd= Gnd
X=AnalogInput 5
Y=AnalogInput 4
Z=AnalogInput 3

Here's my code:

SecretLabs.NETMF.Hardware.AnalogInput XPort = new SecretLabs.NETMF.Hardware.AnalogInput(Pins.GPIO_PIN_A5);
SecretLabs.NETMF.Hardware.AnalogInput YPort = new SecretLabs.NETMF.Hardware.AnalogInput(Pins.GPIO_PIN_A4);
SecretLabs.NETMF.Hardware.AnalogInput ZPort = new SecretLabs.NETMF.Hardware.AnalogInput(Pins.GPIO_PIN_A3);

while (true)
{
     //read from input ports
     float X = XPort.Read();
     float Y = YPort.Read();
     float Z = ZPort.Read();
      
     //convert to degrees [360*(analogValue/ADCresolution)]
     X= 360*(X/1024);
     Y= 360*(Y/1024);
     Z= 360*(Z/1025);
  
     Debug.Print("X: " + X+ "; Y: " + Y+ "; Z: " + Z);
}

Now,i keep getting outputs aroud 130-200 no matter how i rotate the accelerometer.
Any idea on why it should be happening?

Thanks.

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.