Show Posts
Pages: 1 2 [3] 4
31  Using Arduino / Interfacing w/ Software on the Computer / Arduino VB or C# servo control on: March 02, 2011, 10:08:28 am
Good day

Can anyone please help me with the following project.
I need a c# or VB app that looks and works similar to this one that i created http://robotcontrol.yolasite.com/robotics-forum.php#bn-forum-1-1-4078249718/6874 but the one I created does not work, it was only used as a template and example.
I am currently using Firmata, bit the PWM sliders are just not cutting it.
Even if someone out there know how to convert the PWM sliders in Firmata to buttons I would realy appreciate it.

Please help me with this smiley-mr-green.

Thank you & regards,
Riaan Deyzel
32  Using Arduino / Interfacing w/ Software on the Computer / Firmata Servo Control on: February 18, 2011, 08:31:47 am
Good day

I am working on a robotic tank with CO2 airgun, but I am now stuck.
Please follow this link http://robotcontrol.yolasite.com/build.php to see what i would like my firmata control window to look like.
I am curently using the Old Standard Firmata Library, as the normal Standard Firmata Library is not working on my Arduino Deumlanueve, and i am controlling my 2 servo's on Digital pin 9 & 10 (pan/tilt).
This works, but the servos are jumping all over the place, and gears are creaking inside the servo housing.
I am currently using this  http://www.acraigie.com/programming/firmatavb/firmatavb_downloads.html ArduinoFirmataVBExtended.zip app, because you have the option to choose COM port & BAUD rate, so just by using the top section of this app & creating 4 buttons to pan & tilt a servo will be awesome


Please, can someone create or similar app for me to controll my to servos using any c#,VB.net or any other Windows XP compatable code and the scetch to control my Arduino via my PC's USB port.

Here http://blog.renatopeterman.com.br/?p=164 is an example of another app, but this only support the control of 1 servo on pin 9 or 8.

Please help me with this.


Thank you & regards

Riaan Deyzel
33  Forum 2005-2010 (read only) / Bugs & Suggestions / c# Arduino on: June 17, 2010, 08:55:46 am
Good day

Does anyone have an app that will automatically select PWM out for 4 cursors to control 2 servos.?
C# source code to be able to click on the up or down arrow to move servo no#1 up & down, and a left and right arrow to move servo no# 2 left & right.
If you can please include Arduino scetch for this.


Thank you & regards
Riaan Deyzel


34  Forum 2005-2010 (read only) / Syntax & Programs / Re: Firmata scetch C# Buttons on: August 27, 2010, 01:26:49 am
Good day

Sorry for the confusion, I do not have a c# app with buttons, only the Slider portion of the Arduino <> Firmata <> Visual Basic .NET control panel that I copied & pasted into my app, and that works, I tested it with an servo. I would like to know if there is somebody out there that has done something similar in the past or someone who feels up to it, to create me an C# app with 4 buttons that will be able to send the correct PWM & DIR signals to the Arduino? Here is an example of how I would like it to look:http://robotcontrol.yolasite.com/robotics-forum.php#bn-forum-1-1-4078249718/6874
I would prefer not to use the Firmata App or protocol, and rather use a custom scetch that will work with my example on the link.
Kind regards,
Riaan Deyzel
35  Forum 2005-2010 (read only) / Syntax & Programs / Re: Firmata scetch C# Buttons on: August 26, 2010, 09:22:56 am
Good day

My goal is to se the buttons to drive a WI-FI tank with my Arduino, I lready purchased the http://www.pololu.com/catalog/product/755 Motor driver for this task & I got the motor, The Motor Driver (controller) works with PWM signals, and I would like to be able to control the 2 motors with my 2 Pololu Motor drivers via my arduino forward, back & control the speed (Tank style driving) for example when you hold in the forward button the motor will go full speed, An added bonus will be if someone can make the left motor go forward & the right motor go backwards when the right button is pushed & visa versa.
There are 2 pins on the Motor driver labled PWM & DIR, not sure how this works, see atached drawing.
http://robotcontrol.yolasite.com/build.php

Thank you,
Riaan Deyzel
36  Forum 2005-2010 (read only) / Syntax & Programs / Re: Firmata scetch C# Buttons on: August 26, 2010, 01:34:27 am
Good day

I have created a cutom app with peices of the Arduino <> Firmata <> Visual Basic .NET control panel, i have mannaged to make my own app with two sliders to control my motors, but i do not know how to convert these sliders function into a button press finction. Please see link for more detail.
http://robotcontrol.yolasite.com/privacy-statement.php

Please help me with this.
Thank you & regards
Riaan Deyzel
37  Forum 2005-2010 (read only) / Syntax & Programs / Firmata scetch C# Buttons on: August 25, 2010, 09:52:23 am
Good day

are there anybody out there that knows how to edit the Firmata app to covert the pwm sliders to actual buttons instead of sliding the bar, be able to push a button on the app to get the same results, forwards, back, left, right?, I need a very  simple window with the 4 buttons in it.
Please help with this!
I will use the old standard Firmate Arduino scetch. smiley

Thank you,
Riaan Deyzel
38  Forum 2005-2010 (read only) / Interfacing / c# servo control on: August 30, 2010, 09:33:23 am
Good day

Does anyone have an c# app (or source code) & scetch to control 2 servos from Arduino by clicking on 4 direction buttons.
Similar to this http://blog.renatopeterman.com.br/?p=164 , but in english?

Thank you & regards
Riaan Deyzel
39  Forum 2005-2010 (read only) / Interfacing / Re: 12V Motor Control with Arduino on: August 24, 2010, 01:32:35 am
Good day

I will power the Arduino directly via USB port
I will not have any phisical switches or other devices attached to the circuit on the webpage, I am using the Old standard Firmata Library loaded onto the arduino, and an edited version of the c# Firmata app on this page: http://www.acraigie.com/programming/firmatavb/default.html , so there is no need for switches, maybe a manual on/off switch for emergencies. In this case is the wiring correct if i use the correct pwm & digital pins in the code like PWM pin 5 & Digital Pin 7. Will this also mean that i can use a c#slider to control the speed of the motor with the PWM & a C# pushbuttons to control the direction with the DIR pin connected to pin 7?

If there are anybody out there that knows how to edit this Firmata app to covert the pwm sliders to actual buttons instead of sliding the bar, be able to push a button on the app to get the same results, forwards, back, left, right?

Thank you,
Riaan Deyzel smiley
40  Forum 2005-2010 (read only) / Interfacing / Re: 12V Motor Control with Arduino on: August 23, 2010, 09:33:15 am
Thank you for your quick responce.
I have edited the circuit on my website, check it out and see if this is what you had in mind for the circuit to work.
Arduino now connected to GND & 15A Fuse.

is all the wires going to the arduino correct, from motor driver to arduino PWM & Digital etc?

Thank you so much for the help.
Thanks,
Riaan Deyzel smiley
41  Forum 2005-2010 (read only) / Interfacing / 12V Motor Control with Arduino on: August 23, 2010, 07:05:21 am
Good day
Please have a look to see if my setup will work.
I would also like to knw if i should remove the current speed controller that came with the 12v cordless drill or should i use a cable tie to keep the trigger in at a set speed or will the motor driver in the link do that job for me.
also, where will i have to put my fuses (how many Amps)or should i use shunts (how many amps) to prevent dammage to the motor/motor driver & battery.
http://robotcontrol.yolasite.com/build.php

Please let me know if this setup is wrong, and send me a picture diagram where possibe, like in my link, it is fine if you use paint to edit my drawing or picture diagram of your own, nothing too fancy.

To send the files here is my e-mail adress riaan.deyzel@gmail.com
I know this might be a long shot, but if anyone have a c# app (control panel) of a similar project where 2X motors were driven via pwm, that will be awesome.

Thank you guys
Riaan Deyzel smiley
42  Forum 2005-2010 (read only) / Interfacing / Arduino & 2X 12VDC Motors on: June 17, 2010, 12:48:54 pm
Can anyone tell me how to connect 2X 12VDC Drill motors to my arduino. I have 2 TIP121's and 2 5vdc SPDT relays.
I have heard that a 5v /240Vrated DPDT relay can be used alone to be able to drive a 12V dc motor, is this true.
I am looking for the easiest way to control the 2X 12VDC Drill motors forward and backwards with the click of a c# app button.
Pleas guys, there must be some of you experienced electronics engeneers that got some easy circuit for me, and and some source code with 4 arrows to control the 2 motors.
Press forward, and both motors go forward
Press backwards and both motors move backwards
press right and only right motor spins
Press left & only the left motor spins.
I have got Firmata, but I need buttons to do the PWM, and not a slider, so if someone out there are brave enough to tackle this, I would really appreciate it a lot.

Thank you so much.
43  Forum 2005-2010 (read only) / Uno Punto Zero / Re: More c# & VB.net source code, together with scetch on: September 28, 2010, 09:50:38 am
No problem, do you know c# connectivity to Arduino at all becase I have tried almost everything, and currently posting on about 5 Forums for anyone to send me the modified source code & sketch for this apphttp://blog.renatopeterman.com.br/?p=164#comment-8, to be able to control another servo, the up & down (tilt) servo, but no luck for 2 months now.

Please anyone out there With some programming knowlege please help.

Thank you.
44  Forum 2005-2010 (read only) / Uno Punto Zero / Re: More c# & VB.net source code, together with scetch on: September 28, 2010, 08:58:43 am
I am an beginner with programming, more an electronics guy.
If anyone got time,and have an idea how to do this, please do this for me.
I have been strugling with this for 2 month.
I have wired everything up, Arduino to sensors, arduino to servo's, arduino to 15 A Pololu MotorDriver and then to 2X 12V drill motors, basically a fully completed robotic tank with CO2 Air rifle for an turret////but I can not control anything////.
[glow]I managed to control my motors via Firmata, then tried it with my servos, but they were very shakky,and I would like to push a button to move my servo's, and not move an sider to send PWM to arduino. A simple sketch just for these 5 buttons functioning will be appreciated.

Thanks for the repy. [/glow]

Previous quote of mine above.

Firmata only gives digital on/off buttons, nd no PWM buttons, instead they use sliders, which is not going to work well to contol an robotic tank.
45  Forum 2005-2010 (read only) / Uno Punto Zero / Re: More c# & VB.net source code, together with sc on: September 28, 2010, 03:18:20 am
Here is the current scetch which I modified to change the pan servo to pin 9

Code:
// Importa a biblioteca Servo.h do arduino
#include <Servo.h>

// Cria uma variavel do tipo Servo que será
// o nosso servo.
Servo servo1;

// Array de char que receberá o comando
// via serial
char buffer[4];

// Variavel que identifica quantos
// caracteres foram recebidos, pois só é
// possível receber um caracter por vez
int received;

void setup(){

  // Define o baud rate (taxa de trasmissão) como 9600
  Serial.begin(9600);

  // Atribui o servo ao pino 9 do Arduino
  servo1.attach(9);

  // Atribui o valor 0 para a variavel received
  received = 0;

  // Na posição 0 do array, atribui o valor '\0'
  // que identifica onde começa o array
  buffer[received] = '\0';
}

void loop(){

  // Verifica se existe alguma entrada de dados
  // disponivel na entrada serial
  if(Serial.available()){

    // Salva os caracteres no array a cada iteração
    buffer[received++] = Serial.read();

    if(received >= (sizeof(buffer)-1)){

      // Imprime na saída serial o valor
      // Apenas para mostrar o valor
      Serial.println(buffer);

      // Converte o valor de "char" para "int"
      int numero = atoi(buffer);

      // Envia o comando para o Servo Motor
      servo1.write(numero);

      // Zera novamente a variavel
      received = 0;
    }

    // Limpa o buffer da entrada serial
    Serial.flush();

  }

}

That was the easy part, now I need to add support for an second servo "tilt servo" on pin 10, I can copy the code & buttons from the pan buttons and use them for the tilt buttons, but not sure how to link it to the scetch from the C# app, as the same servo on Pin 9 would probabbly move when I press the Tilt (up/Down Buttons). (http://www.renatopeterman.com.br/downloads/ProjetoArduinoServoControl.rar for  source code & http://blog.renatopeterman.com.br/?p=164 for original Scetch)
Can anyone please help with this?
Thanks  :-[
Pages: 1 2 [3] 4