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.

inxtremo

Member Since 13 Jan 2012
Offline Last Active Jul 24 2023 09:49 AM
-----

Posts I've Made

In Topic: Large Project - Kinect Tracking Nerf Launcher

29 August 2012 - 06:27 AM

Any thoughts of concerns about going this route?


Hey, i have the similar devices running here. No problems so far. They move a mechanical pant/tilt device with a camera connected. The power of the stepper are ok for that.

Greetings,
Daniel

In Topic: My Netduino CNC Machine

06 June 2012 - 11:52 AM

Hi, great projects in this thread. Wish my own cnc in the future. One simple and fast question, Has anyone implemented acceleration and deceleration for the stepper motors. Tried it myself but it not really works great. Thanks a lot, Daniel

In Topic: Serial communication with FTDI Breakout Reloaded V1.1

29 March 2012 - 11:24 AM

A little off topic but...

the following line of code was posted in the example...

string line = System.Text.Encoding.UTF8.GetString(bytes);

This method does not exist under NMF 4.2. Did they pull it?


Hey,

as far as i know the GetString method does not exist in .NET MF. Try instead the GetChars method.

The sample you seen does not run on the Netduino. It is a class who sends the message to the Netduino. The class works with the full .NET 4 Framework.

Here is a code example how i do it.

private static void serial_DataReceived(object sender, SerialDataReceivedEventArgs e)
        {
            // wait a bit for filling the buffer
            System.Threading.Thread.Sleep(100);

            // message string
            string msg = null;

            // allocate a byte array
            byte[] bytes = new byte[_serial.BytesToRead];

            // read bytes
            _serial.Read(bytes, 0, bytes.Length);

            // send bytes back for error checking
            _serial.Write(bytes, 0, bytes.Length);

            // encode bytes to a string message 
            msg = new string(System.Text.Encoding.UTF8.GetChars(bytes));

            // split message
            if (msg != null)
            {
                // split parameter
                splittedMsg = msg.Split(',');

                // allocate array for the parameters
                int[] param = new int[splittedMsg.Length];

                // write parameter to the array
                for (int i = 0; i < splittedMsg.Length; i++)
                {
                    param[i] = System.Int32.Parse(splittedMsg[i]);
                }

                // do something
                switch (param[0])
                {
                    case 0:
                       blaaa ....
                       break;
                    default:
                        break;
                }
            }
        }

Best regards,
Daniel

In Topic: Powering EasyDriver Question

11 March 2012 - 04:16 PM

Hay, i think i have the soultion. Changing the voltage from my power supply from 12V to 5V makes it moves fine. I don´t know why but i´m happy that it works now. Thanks or the great help. Best regards, Daniel

In Topic: Powering EasyDriver Question

08 March 2012 - 06:26 PM

Forgive the obvious. That power supply was delivered to you pre-assembled. You tested it after you built it right? You got a cordless drill battery laying around?


Both, the power supply and the "breadboard power supply" were pre-assembled. I tested the breadboard power supply a few weeks ago but there nothing worked.

Option 1:
I power both drivers with the "breadboard power supply" (5V) and drive two steppers with each 12V and 330mA. The external power supply is 12V and 1500mA. --> Both steppers moves but not really well. I think the 5V is too less.


Option 2:
I power both drivers with the "breadboard power supply" (5V) and drive two steppers with each 4V and 1200mA. The external power supply is 12V and 2500mA. --> Both steppers moves but not really well but better as with the 1500mA power supply.

Option 3:
I power both drivers with the "breadboard power supply" (5V) and drive two steppers with each 12V and 330mA. The external power supply is 12V and 1500mA. --> Both steppers stands still.

Option 4:
I power both drivers with the "breadboard power supply" (5V) and drive two steppers with each 4V and 1200mA. The external power supply is 12V and 2500mA. --> Both steppers stands still. But it seems they try to move.

Directly connection the external power supply bring no movement at all.

And suggestion. Maybe i have the wrong power supply? But i tried three different types now. the last from my ole notebook with 18,5V and 3,5A.

Update:

Try to connect an ATX-Power supply from an old PC. 12V max 30A. One driver moves a little bit.

Interestingly the steppers moves at the beginning of the test. Later there is often no more movement like in the beginning (10sec later or so). It seems like there is a rechargable becoming empty :huh:

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.