Покажи участието

От тук може да видиш всички публикации на този потребител.


Теми - hijack

Страници: [1]
1
Купувам-Продавам / Arduino компоненти и Zumo Robot
« -: Август 21, 2015, 10:39:53 am »
Продавам,

2бр Arduino Uno R3.


Arduino Mega R3.


Arduino Ethernet Shield съвместим със Arduino Mega.


4бр Tamaya колела.


4бр Метални Серва (MG955) преработени за продъжително въртене.


AF Motor Shield V2.


Zumo Robot зглобен със 1:100 редуктори и Arduino Leonardo .


Pololu Distance Sensors 10cm обхват (дигитални).


Първи собвственик съм на всички компоненти, продуктите са неразличими от нови купувани са за проект който не беше реализиран.
Обща цена 200лв може и по-отделно но не по малко от 2 продукта, приемам и бартери.
За връзка на лично съобщение :)

2
Купувам-Продавам / Купувам Робко 01
« -: Септември 29, 2014, 05:23:02 pm »
Купувам Робко 01, във добро или лошо състояние, не държа на захранвания,маси и подобни добавки.

Цена: По договаряне.
За връзка на ЛС или тел.0877904093  :)

3
Line Tracer / Karel V4
« -: Април 22, 2014, 07:56:32 pm »
Това е робот който се използва предимно за състезания и демонстрации.

Функции:
Робота се използва предимно за състезания.функциите който изпълнява робота са:
Следедене на линия.
Ориентиране в 3D лабиринт.
RC управление посредством Bluetooth и Xbee.

Следене на линия:
Робота следи линя посредством 8 оптрона,събрани в една платка Pololu - QTR-8A .

RC управление:
За безжичното оправление е използван Bluetooth модул HC-05 и Xbee 1mw- Series 1.ЗA приемник и предавател.
Програмата за управление чрез Bluetooth e изтеглена от APPStore на Андроид.Името на програмата е Bluetooth RC Car,за управлението чрез Xbee e използван Microsoft Visual Studio 2010 за направата на контролера(програмата).

3D Лабиринт:
Все още тази функция не се използва поради липсата на софтуер.

Механика:
Шасито на робота е изработено от 1мм дуралуминий,боядисано черно на цвят.Задвижва се със редуктори с четири възможни предавки (12.7:1, 38:1, 115:1 и 344:1) на Tamaya.И комплект нископрофилни спортни колела с диаметър 56мм и ширина 25мм.

Електроника:
Робота се захранва със 6 батерии по 1.5V(Волта) в пакет със общо напрежение 9 волта.
Мозъкът на роботът е Италианската платформа Ардуйно Уно (Arduino Uno).За управление на моторите е използван мотор шийлд който е базиран на L293D.
Направена е платка с мултиплексор с цел използване на по-малко работни пинове на Arduino


Снимки:






4
Ардуино (Arduino) / Промяна на код
« -: Февруари 11, 2014, 08:52:14 pm »
Проблема ми е следният създадох,робот за ориентиране в лабиринт но използвах AFМotor вместо Sparkfun motor shield.
Тъй като програмирането не ми е най силната страна въпроса ми е некой ще можели да преправи кода за да работи с AFMotor Shield-a.

Ако някой не знае за кой Shield става на въпрос това е : ТУК

Това е страницата от която е взет кода и проекта-ТУК


А кода който трябва да се преправи е това:
#include <SoftPWMServo.h>

//MOTOR SETUP
const int pwm_a = 3;   //PWM control for motor outputs 1 and 2 is on digital pin 3
const int pwm_b = 11;  //PWM control for motor outputs 3 and 4 is on digital pin 11
const int dir_a = 12;  //direction control for motor outputs 1 and 2 is on digital pin 12
const int dir_b = 13;  //direction control for motor outputs 3 and 4 is on digital pin 13
const char motor_speed = 200; //set the motor speed (between 0 and 255)

//IR SENSOR SETUP
const int rSensor_pin = 0; //right sensor will be read on ANO
const int fSensor_pin = 5; //front sensor will be read on AN5

//Let's set up some variable that we'll use in the code
int rSensor_val = 0;  //this will be the right sensor value ADC reading (between 0 and 1023)
int fSensor_val = 0;  //this will be the front sensor value ADC reading (between 0 and 1023)
boolean sweetspot = false;  //boolean value initialized to false. When its true, it means the wall on the right of the robot is the "sweet spot"
boolean rSensorHit = false; //boolean value initialized to false. When its true, it means the wall on the robot's right is too close
boolean fSensorHit = false; //boolean value initialized to false. When its true, it means the wall in front of the robot is too close
int sensor_state = 0;

void setup()
{
  pinMode(dir_a, OUTPUT); //Set the dir_a pin as an output
  pinMode(dir_b, OUTPUT); //Set dir_b pin as an output
  digitalWrite(dir_a,  HIGH);  //Reverse motor direction, 1 high, 2 low
  digitalWrite(dir_b, HIGH);  //Reverse motor direction, 3 low, 4 high 

}

void loop()
{

  //This is how I usually do things but you may wish to change it up a bit

  //First get all you inputs
  read_sensors();
  //Then make some decisions based on these inputs
  parse_inputs();
  //Then do all your outputs at the same time. In this case, determine motor speeds
  run_motors();
  //I always have a loop timing function
  loop_timing();
}

//this function reads the IR value on the analog input pins
void read_sensors()
{

  rSensor_val = analogRead(rSensor_pin);
  fSensor_val = analogRead(fSensor_pin);
}

//this function then makes decisions based on those inputs
void parse_inputs()
{

  if (fSensor_val > 850) fSensorHit = true; //if the front sensor sees a wall set the fSensorHit variable TRUE

  //Otherwise, check if the robot is in the "sweet spot"
  else if ((rSensor_val > 750)&&(rSensor_val <850)&&(fSensor_val < 850)) sweetspot = true;      //If not, then is the wall on the right side of the robot too close?   //If so, set the rSensorHit variable TRUE   else if (rSensor_val > 850) rSensorHit = true;

  //Otherwise make sure all of the sensor flags are set to FALSE
  else{
    fSensorHit = false;
    rSensorHit = false;
    sweetspot = false;
  }

  //reinitialize your sensor variable to a known state
  rSensor_val = 0;
  fSensor_val = 0;

}

//This routine runs the two motors based on the flags in the previous funciton
void run_motors()
{

  //If the wall on the right is too close, turn left away from the wall
  if (rSensorHit)left();

  //Otherwise, if the wall is in the "sweet spot", then try and stay parallel with the wall
  //keeping both wheel speeds the same
  else if (sweetspot)forward();

  //If the front sensor sees a wall, turn left
  else if (fSensorHit)left();

  //If neither sensor sees a wall, then move in a really big arc to the right.
  //Hopefully, the bot wil be able to pick up a wall
  else right();

  //Always set your flags to a know value. In this case, FALSE
    fSensorHit = false;
    rSensorHit = false;
    sweetspot = false;

}

void loop_timing()
{
  delay(50);

}

//Motor routines called by the run_motors()

void forward() //full speed forward
{

  //both wheels spin at the same speed
  SoftPWMServoPWMWrite(pwm_a, motor_speed);
  SoftPWMServoPWMWrite(pwm_b, motor_speed);
}

void stopped() //stop
{

  //turn off both motors
  SoftPWMServoPWMWrite(pwm_a, 0);
  SoftPWMServoPWMWrite(pwm_b, 0);
}

void left()                   //stop motor A
{

  //turn of the left motor so that the robot vears to the left
  SoftPWMServoPWMWrite(pwm_a, motor_speed);
  SoftPWMServoPWMWrite(pwm_b, 0);

}

void right()                   //stop motor B
{

  //Here we're running the right motor at a slower speed than the left motor
  //Therefore, the bot will travel in a large circle to the right
  SoftPWMServoPWMWrite(pwm_a, 50);
  SoftPWMServoPWMWrite(pwm_b, motor_speed+50); 
}

5
Line Tracer / Line Tracer with QTR-8 ГОТОВ
« -: Декември 30, 2013, 07:29:56 pm »
Здравейте нов съм във този форум,но отдавна се занимавам с това хоби но наскоро срещнах затруднение.
Закупих следните неща:
Ардуино Уно
Двоен редуктор на Tamaya
Ардуино шйелд L239D
QTR-8RC
За първи път работя с този вид сензор.След 3 дена ровене в Google никакъв смислен резултат,код или схема.
Та молбата ми е някои ако може да помогне с някой схема код и тн.

Страници: [1]