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.

Spammy786

Member Since 30 Apr 2014
Offline Last Active Nov 18 2014 07:46 AM
-----

Posts I've Made

In Topic: Access Netdunio Plus 2 From Desktop Application

11 November 2014 - 12:02 PM

Any ideas guys ?


In Topic: Blinking example problems

11 November 2014 - 12:00 PM

Hi

 

I am also using visual studio 2013 pro update 3, my firmware on the N+2 is 4.3.1.0

I followed this example on youtube and I got mine to blink

 

The only thing I can say is try change your Thread.Sleep(250) to Thread.Sleep(1000) and see if that makes a difference.

 

Also try the "How To's" on this page, check if the push button works etc etc etc.

http://netduino.com/projects/

 

Does it output any errors when you try and deploy ?


In Topic: Controlling 2WD Chassis using Motor Driver 1A Dual TB6612FNG

10 November 2014 - 06:56 AM

Hey CW2

 

Your suggestion above worked so I investigated the code a bit further. The problem was the PWM code. See all the examples I found, PWMA was connected to pin5, So we were choosing channel5, So basically we physically connected it to pin5 to the N+2 but in code you have to choose PIN0. I think this is because I am using 4.3.1.0.  The code below works :)

Thanks everybody for your help. 

using System.Threading;
using Microsoft.SPOT;
using Microsoft.SPOT.Hardware;
using SecretLabs.NETMF.Hardware;
using SecretLabs.NETMF.Hardware.Netduino;

namespace MotorController
{
    public class Program
    {
        public static void Main()
        {
            OutputPort stby = new OutputPort(Pins.GPIO_PIN_D0, true);

            //motorA
            PWM motorA = new PWM(Cpu.PWMChannel.PWM_0, 10000, 1, true);
            OutputPort a1 = new OutputPort(Pins.GPIO_PIN_D1, false);
            OutputPort a2 = new OutputPort(Pins.GPIO_PIN_D2, false);
            motorA.Start();

            //motorB
            PWM motorB = new PWM(Cpu.PWMChannel.PWM_1, 10000, 1, true);
            OutputPort b1 = new OutputPort(Pins.GPIO_PIN_D8, false);
            OutputPort b2 = new OutputPort(Pins.GPIO_PIN_D9, false);
            motorB.Start();


            while (true)
            {
                //this controls motorA
                a1.Write(false);
                a2.Write(true);
                motorA.DutyCycle = (double)0.7;

                //this controls motorB
                b1.Write(false);
                b2.Write(true);
                motorB.DutyCycle = (double)0.7;
             }
        }
    }
}

In Topic: obstacle avoidance robot

10 November 2014 - 06:50 AM

Hi wateverz101

 

You can find examples trolling around the forum and if you post your specific problem, people will surely help you. What hardware do you have to build your robot. What have you done and which is the part you struggling with. Have a look at this post, it will show you how to control a 2WD chassis, It also states all the hardware used and a wiring diagram. Thats to get the motors working. 

 

Now you would have to add some sensor to your robot to detect obstacles and with the data you receive back from the sensor you can code the required logic.

 

http://forums.netdui...dual-tb6612fng/


In Topic: Controlling 2WD Chassis using Motor Driver 1A Dual TB6612FNG

07 November 2014 - 01:38 PM

Sure, I shall take out a pic tonight and upload it, no problem. 

I was reading this article online : http://bildr.org/201...612fng-arduino/

And it talks about the StandBy Pin. Could that be my problem ? Im not sure. I did set it to true and ran the program, did nothing, I set it to false and it didnt do anything. So im not entirely sure.


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.