Bingo!Connect the battery minus terminal with Netduino ground.
But why? I just don't get that ground thing, I think I must read more about basic electronics.
Thank you very much.
  | ||||||||||||||
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.
Kristoffer's ContentThere have been 37 items by Kristoffer (Search limited from 29-April 23) #30256 Inductive sensor input problemPosted by Kristoffer on 05 June 2012 - 07:59 PM in Netduino 2 (and Netduino 1) Bingo! But why? I just don't get that ground thing, I think I must read more about basic electronics. Thank you very much. #30253 Inductive sensor input problemPosted by Kristoffer on 05 June 2012 - 07:46 PM in Netduino 2 (and Netduino 1) yes, that might be the problem, but how would I configure the Voltage provider? I've tried with a transistor without luck. At the moment I'm trying to read up on transistors, they might help. #30250 Inductive sensor input problemPosted by Kristoffer on 05 June 2012 - 07:24 PM in Netduino 2 (and Netduino 1) My goal is to receive a high signal so I give it 4.2V to a digital pin, that should be enough to give a high signal, as I understand the analog pins can only handle max. 3.3V input? So a digital pin and that voltage should be fine. Changing to this var ip = new InputPort(Pins.GPIO_PIN_D1, true, ResistorModes.Disabled);gives me randomly true and false signals no matter what state the sensor is in However, I noticed one thing, the voltage between the volt out of the voltage divider and the ground on the 24V power supply is 4.2V when sensor is triggered, but the voltage is only 2.8 between volt out of voltage divider and ground on Netduino, see attachment (Inductive sensor Netduino setup2.png) So this is where I'm lost, what is ground? should I just try to turn up the output volt of the voltage divider to get +3.3V between Netduino Ground and input voltage (output voltage of voltage divider). Kristoffer #30229 Inductive sensor input problemPosted by Kristoffer on 05 June 2012 - 01:03 PM in Netduino 2 (and Netduino 1)
Hi
I got an Inductive Proximity Sensor (https://www.mysick.c...ProductID=51476), which I'd like to read the output from with my Netduino. It's a DC 3-wire PNP NO and I give it 24V. See attachment for the setup. The censor seems to work fine, when triggered it gives 24V in output and 0V when not triggered. I've made a voltage divider which brings the sensor output down to ca. 4V and my multimeter confirms that. But I can't read that value in Netduino, this little program outputs only "true" public static void Main() { var ip = new InputPort(Pins.GPIO_PIN_D1, true, Port.ResistorMode.PullUp); while (true) { Debug.Print("ip.Read() = " + ip.Read()); Thread.Sleep(1000); } } I'm definitely not an electronic master mind, so any help with my setup is appreciated. Thank you Kristoffer EDIT: attached file, sorry! #29806 NetduinoGo ShieldBase InterruptPort gives exceptionPosted by Kristoffer on 26 May 2012 - 10:28 AM in Netduino Go
Ok, thanks.
#29755 NetduinoGo Button - release event on button pressedPosted by Kristoffer on 25 May 2012 - 10:39 AM in Netduino Go
Hi
Having this code using System; using System.Threading; using Microsoft.SPOT; using SecretLabs.NETMF.Hardware.NetduinoGo; namespace GoConsole { public class Program { public static void Main() { NetduinoGo.Button btn = new NetduinoGo.Button(GoSockets.Socket1); btn.ButtonPressed += new NetduinoGo.Button.ButtonEventHandler(btn_ButtonPressed); btn.ButtonReleased += new NetduinoGo.Button.ButtonEventHandler(btn_ButtonReleased); Thread.Sleep(Timeout.Infinite); } static void btn_ButtonReleased(object sender, bool buttonState) { Debug.Print(DateTime.Now.ToString("ss.fff") + " btn_ButtonReleased state: " + buttonState); } static void btn_ButtonPressed(object sender, bool buttonState) { Debug.Print(DateTime.Now.ToString("ss.fff") + " btn_ButtonPressed state: " + buttonState); } } } If I press the button and hold it down for a short time I get this output: 33.411 btn_ButtonPressed state: True 35.495 btn_ButtonReleased state: False Just what I expected. If I press it and immediately release it, the output often look like this: 41.911 btn_ButtonReleased state: False 41.912 btn_ButtonPressed state: True 42.001 btn_ButtonReleased state: False or this 13.002 btn_ButtonReleased state: False 13.003 btn_ButtonReleased state: False 13.004 btn_ButtonPressed state: True 13.116 btn_ButtonReleased state: False Occasionally this pattern also happens if I press and hold the button down. 47.208 btn_ButtonReleased state: False 47.209 btn_ButtonPressed state: True 52.804 btn_ButtonReleased state: False My point is, sometimes I get one or two release events before the press event even though I haven't released it, is that digital bounce and as is and should I just handle it in code then? Thank you Kristoffer #29754 NetduinoGo ShieldBase InterruptPort gives exceptionPosted by Kristoffer on 25 May 2012 - 09:17 AM in Netduino Go
Hi
When I run this code using System; using System.Threading; using Microsoft.SPOT; using Microsoft.SPOT.Hardware; using SecretLabs.NETMF.Hardware.NetduinoGo; namespace ShieldBase { public class Program { public static void Main() { NetduinoGo.ShieldBase sb = new NetduinoGo.ShieldBase(GoSockets.Socket5); Microsoft.SPOT.Hardware.InterruptPort ip = new InterruptPort(sb.Pins.GPIO_PIN_D7, true, Port.ResistorMode.PullUp, Port.InterruptMode.InterruptEdgeBoth); ip.OnInterrupt += new NativeEventHandler(ip_OnInterrupt); Thread.Sleep(Timeout.Infinite); } static void ip_OnInterrupt(uint data1, uint data2, DateTime time) { Debug.Print("ip_OnInterrupt()"); } } } This statement gives an exception "An unhandled exception of type 'System.Exception' occurred in Microsoft.SPOT.Hardware.dll" ip.OnInterrupt += new NativeEventHandler(ip_OnInterrupt); The code (except for the ShieldBase) works perfect for the Netduino. Only other module attached to the NetduinoGo is a button at GoSocket1. Project properties are: Deployment – transport: USB Deployment - Device: NetduinoGo_NetduinoGo. Target framework is .NET Micro Framework 4.2 I've tried other pins with same result. Any idea? Thank you, Kristoffer #29697 NetduinoGo ShieldBase.dll wherePosted by Kristoffer on 24 May 2012 - 06:45 PM in Netduino Go
Thanks a lot Stefan, and thanks for updating the wiki as well.
Kristoffer
#29672 NetduinoGo ShieldBase.dll wherePosted by Kristoffer on 24 May 2012 - 01:24 PM in Netduino Go
Hi
I'm trying to get my NetduinoGo ShieldBase up and running. I've downloaded and installed Netduino SDK v4.2.0 But I can't find the NetduinoGo.ShieldBase.dll I only got NetduinoGo.Button.dll, NetduinoGo.RgbLed.dll and NetduinoGo.Potentiometer.dll. What am I missing? Am I supposed to download and build the ShieldBase firmware? The examples I've seen with the ShieldBase doesn't say anything about building firmware, so I might suspect I'm making it more complicated than necessary. Please enlighten me. Regards Kristoffer #29518 Robot 4x4 projectPosted by Kristoffer on 22 May 2012 - 12:37 PM in Project Showcase
Hi
The videos are removed and can't be seen!
Is it possible for you to upload the videos?
I'm using the L298 driver as well for a dc motor, however I'm having some problems,,if possible, coild you provide a photograph of how you have connected the L298 to power supply (what supply are you using), Netduino, Jumper settings etc.?
Regards Kristoffer
#28854 Using Go!Socket pin as IO pinPosted by Kristoffer on 11 May 2012 - 08:33 PM in Netduino Go
Thanks a lot for your replies, I'll look into it.
Kristoffer
#28806 Using Go!Socket pin as IO pinPosted by Kristoffer on 11 May 2012 - 10:13 AM in Netduino Go
Hi
Newbie alert!!!! I've searched this forum and the Internet a lot (and I've probably read the answer, just didn't understand it) I've worked with Netduino for a short time and driven stepper motors with the BigEasyDriver (BED), no problem. However I would like to use the Netduino Go for my project because of the modules. But how do I connect my BED? Is it possible to connect it to one of the GO Sockets? I know I can buy the ShieldBase and use it as a normal Netduino, but can I use GO Socket pin 3-9 as IO's, say, connect GO Socket pin 3 to BED "dir", GO Socket pin 4 to BED "step", GO Socket pin 5 to BED "MS1" and GO Socket pin 10 would go to BED "gnd"? If possible, how would I reference the pins in C# code? If it's unclear, I can provide a sketch of what I mean. Am I way off? Thanks Kristoffer
| ||||||||||||||
|
||||||||||||||
This webpage is licensed under a Creative Commons Attribution-ShareAlike License. | ||||||||||||||