L298 driver module problem

I did it ))

What should i do to make the proper measurments?

Hi Alex,

I donā€™t have that module, but typically with devices like this, there are 2 values specified.

One is for the power needed to run the chip (up to 5v in this case comes through the gadgeteer cable),and the other is the power being sent to the motors (up to 40v 3a).

If you are using the same power source for both the GHI and motors, then you need to be sure it can supply enough voltage and amps to run both. When the motor starts spinning it will usually quickly pull alot of power, and it you are using 1 source, this may cause your main board to restart when this happens.

1 Like

Thank all of you guys!!! This was the matter, i set the 6v wall wart as a power suply and get it done!!! Battery are woefully poor power sources!
Can you advice any good power sources for the future when i would like to power up the robot not from the wall charger?

2 Likes

Big C or D size batteries, or lipo batteries as used in remote control cars. Either of those have a much greater capacity and ability to deliver as a current source.

Glad you got it going! :dance:

Now we need to see videos of your device in action.

In the past Iā€™ve used a battery pack from a cordless screwdriver. If you take it apart there are a collection of cells that look to be about the size of C cells (they are a bit different though).

The tricky part is recharging them - so be sure to think that part through before ripping the wires between the cells apart (like I did :). Also, with the packs I had, I couldnā€™t solder wires to the cells, I guess it had to do with the metals used - or that I had a cheap iron at the time.

I wrote it down guysā€¦ thank you one more time. I will definetly upload some videos, but later on when i teach the robo to do something. Firstly i am going to find out how to control motors from button events in windows app with usb cable connected to mainboard. Because now i found out only how to load a project to mainboard and run it. Sample of code would be greatā€¦
Now i load this code to mainboard directly from IDE (VS 2012):


motorL298.SetSpeed(motor1,1);
motorL298.SetSpeed(motor1,1);

and can watch how the wheels are spinning around, but how to control the mainboard behavior from button click events? something like:


button1.Click() // start the motors
{
  motorL298.SetSpeed(motor1,1);
  motorL298.SetSpeed(motor1,1);

}

button2.Click() // stop the motors
{
  motorL298.SetSpeed(motor1,0);
  motorL298.SetSpeed(motor1,0);

}

and i want the mainboard to listen this eventsā€¦

I will start separate thread for this question if neededā€¦

@ Alex Bilityuk - Check documentation about InterruptPort. That is the class that used with buttons most of the time.

An example:

https://www.ghielectronics.com/docs/5/digital-inputs#40

@ Architect - he wanted to use his computer to control it, via usb

Iā€™ve never tried this ā€¦ would he need a USB Host? Or is there a FTDI style module?

If that so then I would use something like this:

https://www.ghielectronics.com/catalog/product/287

Or may be even a BT module from Justin.

I did something sort of like this using the Xbee-compatible RN171 module, like this one http://www.sparkfun.com/products/10822. I used it to control a cpu fan, a display, sensor and LEDS from different button presses on a phone.

Yes, mhectorgato right. I meant to use a buttons in windows app. just as in regular visual studio c# project, put 4 buttons on the windows app form and handle button click events directly on Cerbuino bee mainboard.

I already have a usb host on Cerbuino bee, can i use this one? Or is it possible to handle windows buttons events through a USB client on mainboard that is used to load the gadgeteer project to device?

I already have a RN-XV WiFly Module (Xbee),L2 gadgeteer camera and HD44780 display module from Pete Brown video (Controlling a NETMF Gadgeteer Robot from a Windows 8 App - Pete Brown's 10rem.net). Finally i want to control my robot from android smartphone via wifi and stream the video from L2 camera to smartphone, but before i start a hardcoding and all stuff with TCP sockets and wifi it would be fine to test a simple movments: forward,backward,stop,left,right on simple windows app with 4 buttonsā€¦

Gary, link you provided is broken.

[quote=ā€œAlex Bilityukā€]Gary, link you provided is broken.
[/quote]

There was a period in the link ā€“ try this: https://www.sparkfun.com/products/10822

Its for the RN-XV WiFly Module with wire antenna.

2 Likes

@ mhectorgato - now I am going to hear it all day again about the periodā€¦lol :smiley:

1 Like

Somebody, teach Gary how to remove a period at the end of a link.

3 Likes

There was a period in the link ā€“ try this: https://www.sparkfun.com/products/10822

Its for the RN-XV WiFly Module with wire antenna.
[/quote]

I got itā€¦ just set it on the chassis (picture attached)

Gary, could you share your code please. I am going to try robot via wifyā€¦

1 Like

@ Alex Bilityuk - let me dig it up and get it over to you. It may be tomorrow but donā€™t worry I will get it over to you.

Thank you!!! It sounds great

@ Alex Bilityuk - There is a driver for Sparkfunā€™s WiFly module on codeshare:

https://www.ghielectronics.com/community/codeshare/entry/119

1 Like

@ Alex Bilityuk - here is another driver that can be used:
https://www.ghielectronics.com/community/codeshare/entry/927

1 Like