Top.Mail.Ru
Перейти к содержанию
Новости в мире симрейсинга
Новости

mypkuh

Рейсеры
  • Постов

    251
  • Зарегистрирован

  • Посещение

  • Победитель дней

    4

Весь контент mypkuh

  1. Можно сказать альфа версия сима готова [spoiler=Альфа 1.0] Есть кто разбирается в настройках SimTools ? какие силы нужны для 2dof, как инвертировать силы? и прошу поделится вашими пресетами по силам.
  2. щас от ланоса 50ватные, но на долго их не хватить. внутри вот такое будет, после примерно 200 часов
  3. С заделом на будущие, кто знает вдруг психану и моторы помощнее поставлю)
  4. На русском форуме подсказали что это норма и под нагрузкой пройдет. И вообще настройкой моторов только под нагрузкой заниматся. Возможно дело в мотомонстре Тем временем https://photos.app.goo.gl/0HmoMAUyXKnTmJNE2
  5. В общем дело явно в коде, при переключении мотора работает без пробелем
  6. измение данной настройки увы не помогает. единственное что остается это либо в коде ардуино что-то или мотор такой глюченый. вот мой код мб кто разбирается в таких?) [spoiler=код ардуино] /* Arduino code for dynamic playseat 2DOF Created 24 May 2011 by Jim Lindblom SparkFun Electronics https://www.sparkfun.com/products/10182 "Example Code" Created 24 Apr 2012 by Jean David SEDRUE Version betatest26 - 24042012 http://www.gamoover.net/Forums/index.php?topic=25907 Updated 20 May 2013 by RacingMat in english http://www.xsimulator.net/2dof-wiper-motor-playseat/ in french : http://www.gamoover.net/Forums/index.php?topic=27617 Updated 30 April 2014 by RacingMat (bug for value below 16 corrected) */ #define BRAKEVCC 0 #define RV 2 //beware it's depending on your hardware wiring #define FW 1 //beware it's depending on your hardware wiring #define STOP 0 #define BRAKEGND 3 //////////////////////////////////////////////////////////////////////////////// #define pwmMax 255 // or less, if you want to lower the maximum motor's speed // defining the range of potentiometer's rotation const int potMini=300; const int potMaxi=800; //////////////////////////////////////////////////////////////////////////////// #define motLeft 0 #define motRight 1 #define potL A0 #define potR A1 //////////////////////////////////////////////////////////////////////////////// // DECLARATIONS //////////////////////////////////////////////////////////////////////////////// /* VNH2SP30 pin definitions*/ int inApin[2] = { 7, 4}; // INA: Clockwise input int inBpin[2] = { 8, 9}; // INB: Counter-clockwise input int pwmpin[2] = { 5, 6}; // PWM input int cspin[2] = { 2, 3}; // CS: Current sense ANALOG input int enpin[2] = { 0, 1}; // EN: Status of switches output (Analog pin) int statpin = 13; //not explained by Sparkfun /* init position value*/ int DataValueL=512; //middle position 0-1024 int DataValueR=512; //middle position 0-1024 //////////////////////////////////////////////////////////////////////////////// // INITIALIZATION //////////////////////////////////////////////////////////////////////////////// void setup() { // serial initialization Serial.begin(115200); // initialization of Arduino's pins pinMode(statpin, OUTPUT); //not explained by Sparkfun digitalWrite(statpin, LOW); for (int i=0; i<2; i++) { pinMode(inApin[i], OUTPUT); pinMode(inBpin[i], OUTPUT); pinMode(pwmpin[i], OUTPUT); } // Initialize braked for motor for (int i=0; i<2; i++) { digitalWrite(inApin[i], LOW); digitalWrite(inBpin[i], LOW); } } //////////////////////////////////////////////////////////////////////////////// ///////////////////////////////// Main Loop //////////////////////////////////// //////////////////////////////////////////////////////////////////////////////// void loop() { int sensorL,sensorR; readSerialData(); // DataValueR & L contain the last order received (if there is no newer received, the last is kept) // the previous order will still be used by the PID regulation MotorMotion Function sensorR = analogRead(potR); // range 0-1024 sensorL = analogRead(potL); // range 0-1024 motorMotion(motRight,sensorR,DataValueR); motorMotion(motLeft,sensorL,DataValueL); } //////////////////////////////////////////////////////////////////////////////// // Procedure: wait for complete trame //////////////////////////////////////////////////////////////////////////////// void readSerialData() { byte Data[3]={ '0','0','0' }; // keep this function short, because the loop has to be short to keep the control over the motors if (Serial.available()>2){ //parse the buffer : test if the byte is the first of the order "R" Data[0]=Serial.read(); if (Data[0]=='L'){ Data[1]=Serial.read(); Data[2]=Serial.read(); // call the function that converts the hexa in decimal and that maps the range DataValueR=NormalizeData(Data); } if (Data[0]=='R'){ Data[1]=Serial.read(); Data[2]=Serial.read(); // call the function that converts the hexa in decimal and maps the range DataValueL=NormalizeData(Data); } } if (Serial.available()>16) Serial.flush(); } //////////////////////////////////////////////////////// void motorMotion(int numMot,int actualPos,int targetPos) //////////////////////////////////////////////////////// { int Tol=20; // no order to move will be sent to the motor if the target is close to the actual position // this prevents short jittering moves //could be a parameter read from a pot on an analogic pin // the highest value, the calmest the simulator would be (less moves) int gap; int pwm; int brakingDistance=30; // security concern : targetPos has to be within the mechanically authorized range targetPos=constrain(targetPos,potMini+brakingDistance,potMaxi-brakingDistance); gap=abs(targetPos-actualPos); if (gap<= Tol) { motorOff(numMot); //too near to move } else { // PID : calculates speed according to distance pwm=195; if (gap>50) pwm=215; if (gap>75) pwm=235; if (gap>100) pwm=255; pwm=map(pwm, 0, 255, 0, pwmMax); //adjust the value according to pwmMax for mechanical debugging purpose ! // if motor is outside from the range, send motor back to the limit ! // go forward (up) if ((actualPos// go reverse (down) if ((actualPos>potMaxi) || (actualPos>targetPos)) motorGo(numMot, RV, pwm); } } //////////////////////////////////////////////////////////////////////////////// void motorOff(int motor){ //Brake Ground : free wheel actually //////////////////////////////////////////////////////////////////////////////// digitalWrite(inApin[motor], LOW); digitalWrite(inBpin[motor], LOW); analogWrite(pwmpin[motor], 0); } //////////////////////////////////////////////////////////////////////////////// void motorOffBraked(int motor){ // "brake VCC" : short-circuit inducing electromagnetic brake //////////////////////////////////////////////////////////////////////////////// digitalWrite(inApin[motor], HIGH); digitalWrite(inBpin[motor], HIGH); analogWrite(pwmpin[motor], 0); } //////////////////////////////////////////////////////////////////////////////// void motorGo(uint8_t motor, uint8_t direct, uint8_t pwm) //////////////////////////////////////////////////////////////////////////////// { if (motor <= 1) { if (direct <=4) { // Set inA[motor] if (direct <=1) digitalWrite(inApin[motor], HIGH); else digitalWrite(inApin[motor], LOW); // Set inB[motor] if ((direct==0)||(direct==2)) digitalWrite(inBpin[motor], HIGH); else digitalWrite(inBpin[motor], LOW); analogWrite(pwmpin[motor], pwm); } } } //////////////////////////////////////////////////////////////////////////////// void motorDrive(uint8_t motor, uint8_t direct, uint8_t pwm) //////////////////////////////////////////////////////////////////////////////// { // more readable function than Jim's (for educational purpose) // but 50 octets heavier -> unused if (motor <= 1 && direct <=4) { switch (direct) { case 0: //electromagnetic brake : brake VCC digitalWrite(inApin[motor], HIGH); digitalWrite(inBpin[motor], HIGH); break; case 3: //Brake Ground (free wheel) digitalWrite(inApin[motor], LOW); digitalWrite(inBpin[motor], LOW); break; case 1: // forward : beware it's depending on your hardware wiring digitalWrite(inApin[motor], HIGH); digitalWrite(inBpin[motor], LOW); break; case 2: // Reverse : beware it's depending on your hardware wiring digitalWrite(inApin[motor], LOW); digitalWrite(inBpin[motor], HIGH); break; } analogWrite(pwmpin[motor], pwm); } } //////////////////////////////////////////////////////////////////////////////// // testPot //////////////////////////////////////////////////////////////////////////////// void testPot(){ Serial.print(analogRead(potR)); Serial.print(";"); Serial.println(analogRead(potL)); delay(250); } //////////////////////////////////////////////////////////////////////////////// void testpulse(){ int pw=120; while (true){ motorGo(motLeft, FW, pw); delay(250); motorOff(motLeft); delay(250); motorGo(motLeft, RV, pw); delay(250); motorOff(motLeft); delay(500); motorGo(motRight, FW, pw); delay(250); motorOff(motRight); delay(250); motorGo(motRight, RV, pw); delay(250); motorOff(motRight); Serial.println("testpulse pwm:80"); delay(500); } } //////////////////////////////////////////////////////////////////////////////// // Function: convert Hex to Dec //////////////////////////////////////////////////////////////////////////////// int NormalizeData(byte x[3]) //////////////////////////////////////////////////////////////////////////////// { int result; if ((x[2]==13) || (x[2]=='R') || (x[2]=='L')) //only a LSB and Carrier Return or 'L' or 'R' in case of value below 16 (ie one CHAR and not 2) { x[2]=x[1]; //move MSB to LSB x[1]='0'; //clear MSB } for (int i=1; i<3; i++) { if (x[i]>47 && x[i]<58 ){//for xA to xF x[i]=x[i]-48; } if ( x[i]>64 && x[i]<71 ){//for x0 to x9 x[i]=x[i]-55; } } // map the range from Xsim (0 <-> 255) to the mechanically authorized range (potMini <-> potMaxi) result=map((x[1]*16+x[2]),0,255,potMini,potMaxi); return result; }
  7. ну на столе слышно, после установки моторы стоят за креслом, пилот обычно в наушниках и шлеме, врятли услушит
  8. Кардан https://goo.gl/photo...r5YZHxMG247KuDA https://goo.gl/photo...6xHeNx4ttJWHct7 при покупке обращать внимание на состоянии крестовины, чтобы легко вращалась) UPD Хорошие новости "оно заработало" видео с полей https://www.youtube.com/watch?v=fYMBm8TMLGw
  9. Добавляем к нашим расходам +1500р. П.О по извлечению данных из игр, оказывается стоит денег) Кряка я не нашел, а я искал (нет) затраты на сегодняшний день: Два мотора 2400р экзист автодок Адруино и МоторМосты 500р али два БП 12вольт 16А примерно 2000р (БУ)авито Поты 300р 10шт(продаются партиями) али ПО simtools 1500р Провода и расходы на пайку Кардан, расходы на сварку и металл еще неизвестны. [spoiler=Мотор от ланоса]https://fotki.yandex...80/view/2120681 [spoiler=наша схема и что получилось]https://fotki.yandex...80/view/2120680 https://fotki.yandex...80/view/2120679 В. Почему нужен мотор от ланоса? О. У него масса не на корпусе, а отдельным проводом!
  10. китайцы радуют доставка за 12 дней. [spoiler=Готовь кокпиты летом] Заканчиваю первый этап, остались моторы дождаться и начинаю собирать стенд.
  11. mypkuh

    Project CARS 2

    У пекарса, детские болезни шифта2 до сих пор не поправили судя по ютубу.
  12. на форуме строителей прочел что зависит от наката платформы, износа шестерен (примерно 100 часов на один участок мотора, если прокручивать каждые 100 часов мотор, то срок службы порядка 500часов. мотора дворников естественно
  13. Sim tools - вот это п.о. управляет. 2мотора-2dof, 3 мотора-3dof и тд до 6dof ,встречал. Попробуешь один раз и подругому ездить не захочешь. Для полного комплекта vr обязателен
  14. Строим 2DOF / буду вести небольшой отчет, мб кто загорится также как и я. Всю сборку решено было поделить на несколько этапов. (планируется бюджетный вариант) т.к. готовые сборки от 30к рублей и до бесконечности цена варьируется) 1-этап закупка электроники (сначала купим основное, и будем настраивать на стенде, по мере необходимости будем докупать по месту недостающую мелочовку) -Два Мотора дворников Шевроле ланос артикул -96303118 1000р новый (подойдет от любой иномарки, только не отечественные) [spoiler=ланос] -Arduino Uno https://ru.aliexpres...2556087234.html -200р -Monster Moto Shield https://ru.aliexpres...sOrigTitle=true -300р (желательно купить два) [spoiler=мост] -блок питания, по линии 12в вольт, нужно чтобы выдавал 30+ ампер подойдут компьютерные 5000-8000р -потенциометры https://ru.aliexpres...2801411901.html -15р\шт (желательно купить 4шт) -провод пвс 3х2.5 3метра 200р Для второго и последующих этапов нам понадобится - кардан\привод автомобильный, профильная труба, кресло автомобильное, руль педали, сварка, прямые руки и хороший настрой) Часть деталей заказано на али, Вторая часть будет куплена на местных разборках.
  15. нашел вот такую подробную инструкцию http://simulador-kaelh.blogspot.ru/ думаю все осуществимо, увы язык инструкции, вроде как испанский по деньгам выходит вроде бюджетно 10-15т.р на глаз,( при заказе у китайцев.) кто нибудь строил такие платформы? также интересуют другие гайды и мануалы, уж очень сложно их найти темболее на русском /
  16. сначала подумал что это летсплей чей-то) наверно из за необычной камеры со стабилизацией на крыше)
  17. система питания вк не перегревается без активного охлаждения то?
  18. Для АС попробуй приложениие FFBClip
  19. для охлаждения воздушного потока на впуске
  20. труба между ног, что не есть гуд для повседнева. зы если собирать самому будет в 2 раза дешевле)
  21. заказывай ручник от фанатека
×
×
  • Создать...