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.

eplaksienko's Content

There have been 107 items by eplaksienko (Search limited from 24-June 23)


By content type

See this member's


Sort by                Order  

#47714 Toolbox HBridge with SB

Posted by eplaksienko on 29 March 2013 - 02:30 AM in Netduino Go

Hi!

 

Anybody has experience SB with DFRobot L298P using HBridge, no errors motor doesn't rotate

 

Here the code

 

 

using System;
using System.Threading;
using Microsoft.SPOT;
using Microsoft.SPOT.Hardware;
using NetduinoGo;
using SecretLabs.NETMF.Hardware;
using SecretLabs.NETMF.Hardware.NetduinoGo;
using Toolbox.NETMF.Hardware;
 
namespace DFRobotMShield
{
    public class Program
    {
        public static void Main()
        {
            // write your code here
            Thread.Sleep(5000);
            NetduinoGo.ShieldBase sb = new NetduinoGo.ShieldBase((GoBus.GoSocket)4);
 
            HBridge MotorDriver = new HBridge(sb.PWMChannels.PWM_PIN_D6, sb.Pins.GPIO_PIN_D7, sb.PWMChannels.PWM_PIN_D5, sb.Pins.GPIO_PIN_D4);
 
            MotorDriver.SetState(HBridge.Motors.Motor1, -50);
         
            //Thread.Sleep(Timeout.Infinite);
            while (true) ;
 
        }
 
    }
}



#47723 Toolbox HBridge with SB

Posted by eplaksienko on 29 March 2013 - 12:23 PM in Netduino Go

Thanks Stefan, I found the solution from absolutely different angle :D, but without your tip :D I wouldn't get it, it's somehow different MS, no PWM/PLL switch, and what happened it was different pins :D I will post later today pic of the shield, but it was shipped by robotshop.com in dfrobot wrappinf with df robot logo on it :D

 

Actually  is there class to control stepper with it?




#47467 Longer Go Cables

Posted by eplaksienko on 22 March 2013 - 12:02 PM in Netduino Go

There are on ghi electronics site, sound like they are compatible




#47337 Need heeeeelp, Something Wrong when restart With SB

Posted by eplaksienko on 18 March 2013 - 05:28 PM in Netduino Go

Chris, could you please look at this issue, need help




#47225 Need heeeeelp, Something Wrong when restart With SB

Posted by eplaksienko on 15 March 2013 - 11:46 AM in Netduino Go

Hi!

 

When I create app, for example blinking led, it works, then switch off and switch on, it doesn't sounds it doesn't keep program there. It's started after new firmware flashed

 

Heeeeeeelp please

 

Thanks

Eugene




#47426 Need heeeeelp, Something Wrong when restart With SB

Posted by eplaksienko on 20 March 2013 - 10:38 PM in Netduino Go

Disregard, solved by

 

 

Thread.Sleep(1000);
NetduinoGo.ShieldBase sb = new NetduinoGo.ShieldBase((GoBus.GoSocket)4);



#49346 Netduino Go with battery pack, any ready inexpensive ideas

Posted by eplaksienko on 10 May 2013 - 05:55 PM in Netduino Go

Hi!

 

Anybody aware Netduino Go with AA battery pack, any ready inexpensive ideas?

 




#47846 Wrong numbers when working with sonar sensor

Posted by eplaksienko on 31 March 2013 - 05:41 PM in Netduino Go

Chris, I see incremental number while moving things further and excremental when going closer, but I can not tune exact number, I didn't yet figured out dependencies experimentally, but the same sonic sensor works great and gives exact calculated numbers with Arduino




#47188 Wrong numbers when working with sonar sensor

Posted by eplaksienko on 14 March 2013 - 02:25 PM in Netduino Go

Chris 1 question related to SB

 

I try to play with sonic distance sensor, one of the guys shared the code http://forums.netdui...ic-rangefinder/

 

I didn't try it with Netduino, but combination of NGO and SB doesn't give correct numbers, is there any specific delays or other could be the reson

 

PS: I tried the module with Arduino it works




#47698 Wrong numbers when working with sonar sensor

Posted by eplaksienko on 28 March 2013 - 07:36 PM in Netduino Go

No, was busy with other staff, I think Secret Labs staff help would be very useful, since it's 99.99% lateness issue, not sure if it because NGO connectivity or SB itself or both. But we should be able to get from them numbers to make calculations better




#47291 Wrong numbers when working with sonar sensor

Posted by eplaksienko on 17 March 2013 - 02:16 PM in Netduino Go

What I can definitely see after investigation playing with stepping motor, there are delays in either changing status on pin or code interpretation 




#47359 Wrong numbers when working with sonar sensor

Posted by eplaksienko on 18 March 2013 - 10:27 PM in Netduino Go

I was able to find delay I see progression, but it's definitely not enough




#47253 Wrong numbers when working with sonar sensor

Posted by eplaksienko on 15 March 2013 - 11:16 PM in Netduino Go

I am still working on shaman-ning it, I am almost there, If folks around will not find scientific solution, hopefully I would be able to give different delays and conversions




#47336 Wrong numbers when working with sonar sensor

Posted by eplaksienko on 18 March 2013 - 05:28 PM in Netduino Go

I am working right now with idea to figure out what's the real delay between NGO and SB

I believe if this one solved we almost there




#48930 TristatePort through exception while construct via SB

Posted by eplaksienko on 02 May 2013 - 02:26 AM in Netduino Go

Hi!

 

 

TristatePort throw exception while construct via SB

 

here the code

 

 

ShieldBase sb = new ShieldBase((GoBus.GoSocket)1);
 
TristatePort p1 = new TristatePort(sb.Pins.GPIO_PIN_D2, false, true, Port.ResistorMode.PullUp);
 
here the exception
 
A first chance exception of type 'System.Exception' occurred in GoBusSerialTransport.dll
An unhandled exception of type 'System.Exception' occurred in GoBusSerialTransport.dll
 
Here the trace
 
  GoBusSerialTransport.dll!GoBus.GoBusSerialTransport.CallFunction(byte profile, byte instance, byte function, byte[] parameters, bool waitForResponse) Line 1101 + 0xcf bytes C#
  NetduinoGo.ShieldBase.dll!NetduinoGo.ShieldBase.CreateTristatePort(Microsoft.SPOT.Hardware.Cpu.Pin portId, bool initialState, bool glitchFilter, Microsoft.SPOT.Hardware.Port.ResistorMode resistor) Line 461 + 0x5d bytes C#
  [External Code]
> Charlie6.exe!Charlie6.Program.Main() Line 17 + 0x1d bytes C#
z`
 
 
Any ideas what's wrong?



#48985 TristatePort through exception while construct via SB

Posted by eplaksienko on 03 May 2013 - 02:12 PM in Netduino Go

Thx Lunddahl, but no solution there yet




#47888 Analog Output for SB

Posted by eplaksienko on 01 April 2013 - 07:39 PM in Netduino Go

Thx guys, It was just a little bit confusing no having yet analog output for SB




#47852 Analog Output for SB

Posted by eplaksienko on 31 March 2013 - 08:21 PM in Netduino Go

Thx Already have solution with PWM




#47847 Analog Output for SB

Posted by eplaksienko on 31 March 2013 - 05:44 PM in Netduino Go

Hi!

 

Does it exist Analog Output for SB?




#47853 Serial port on SB

Posted by eplaksienko on 31 March 2013 - 08:22 PM in Netduino Go

Hi!

 

Question, how to use, code example any?

 

Thanks




#47862 Serial port on SB

Posted by eplaksienko on 01 April 2013 - 12:56 AM in Netduino Go

Doesn't matter found




#47306 SB with NGO much slower then Arduino

Posted by eplaksienko on 17 March 2013 - 09:32 PM in Netduino Go

Chris, in additional is there any hacks to send some more native way?




#47286 SB with NGO much slower then Arduino

Posted by eplaksienko on 17 March 2013 - 03:25 AM in Netduino Go

Hi!

 

may be I misunderstand something, but it seems me processing NGO with SB much slower then with Arduino, I am playing with step motor and I can see difference, I made everything easy, but still I can not get rotate it quicker, and signal lamps are just visible much slower then with arduino, may be there is any hack or anything I am doing wrong, the same code with arduino just fly. Any advise really appreciated

 

PS: I use Stepper Motor+ Driver Board ULN2003 5V 4-phase 5 line

 

 public class Program
    {
     
     
     
        public static void Main()
        {
            // write your code here
            NetduinoGo.ShieldBase sb = new NetduinoGo.ShieldBase((GoBus.GoSocket)4);
            OutputPort op1 = new OutputPort(sb.Pins.GPIO_PIN_D8, false);
            OutputPort op2 = new OutputPort(sb.Pins.GPIO_PIN_D9, false);
            OutputPort op3 = new OutputPort(sb.Pins.GPIO_PIN_D10, false);
            OutputPort op4 = new OutputPort(sb.Pins.GPIO_PIN_D11, false);
 
            bool[][] positions = { new bool[] { false, false, false, true }, new bool[] { false, false, true, true }, new bool[] { false, false, true, false }, new bool[] { false, true, true, false }, new bool[] { false, true, false, false }, new bool[] { true, true, false, false }, new bool[] { true, false, false, false }, new bool[] { false, false, false, false } };
 
            Debug.Print("started");
         
            while (true)
            {
                 
                    op1.Write(positions[0][0]);
                    op2.Write(positions[0][1]);
                    op3.Write(positions[0][2]);
                    op4.Write(positions[0][3]);
                    op1.Write(positions[1][0]);
                    op2.Write(positions[1][1]);
                    op3.Write(positions[1][2]);
                    op4.Write(positions[1][3]);
                    op1.Write(positions[2][0]);
                    op2.Write(positions[2][1]);
                    op3.Write(positions[2][2]);
                    op4.Write(positions[2][3]);
                    op1.Write(positions[3][0]);
                    op2.Write(positions[3][1]);
                    op3.Write(positions[3][2]);
                    op4.Write(positions[3][3]);
                    op1.Write(positions[4][0]);
                    op2.Write(positions[4][1]);
                    op3.Write(positions[4][2]);
                    op4.Write(positions[4][3]);
                    op1.Write(positions[5][0]);
                    op2.Write(positions[5][1]);
                    op3.Write(positions[5][2]);
                    op4.Write(positions[5][3]);
                    op1.Write(positions[6][0]);
                    op2.Write(positions[6][1]);
                    op3.Write(positions[6][2]);
                    op4.Write(positions[6][3]);
                    op1.Write(positions[7][0]);
                    op2.Write(positions[7][1]);
                    op3.Write(positions[7][2]);
                    op4.Write(positions[7][3]);
                    Thread.Sleep(1);
             
            }
 
 
        }
 
    }



#47305 SB with NGO much slower then Arduino

Posted by eplaksienko on 17 March 2013 - 09:31 PM in Netduino Go

Chris, do you mean to send all 4 channels the same time, use 255 bit pwm to split, then I win x4?




#53006 Netduino Plus vs Netduino Go

Posted by eplaksienko on 30 September 2013 - 07:27 PM in General Discussion

NGO, despite it is a great idea of plug and play modules looks like abandoned due lack of resources Secret Labs has, unfortunately I wouldn't suggest to go with this platform yet 





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.