B-Robot on Arduino uno
|
11-07-2015, 06:59 PM
Post: #11
|
|||
|
|||
RE: B-Robot on Arduino uno
So, set the timer1 registers serving in both chips are not the same.
The Atmega328 no OCR1C register. Therefore, we can only cater for two events (sonar excluded). The initialization procedure: Code: void eX_Motors_Init(void) and interrupts Code: ISR(TIMER1_COMPA_vect) Since we control pins in software, you can select any of the available pins. |
|||
11-09-2015, 01:16 PM
Post: #12
|
|||
|
|||
RE: B-Robot on Arduino uno
the ex robot code does not compiling. I use ide version 1.06
and in the code of ex robot alot of unusial code that i dont need. Wifi, ultrasonic, led's, servo and osc. I need that robot only balancing after switch on. Battery sensor also does not need. Where i need to put this part of code. can some body please send working example? |
|||
11-09-2015, 02:32 PM
(This post was last modified: 11-09-2015 02:39 PM by MaxMagic1986.)
Post: #13
|
|||
|
|||
RE: B-Robot on Arduino uno
i try to add this part of code to EX_robot file and remove ewerything that i not use. Not working. but compiling. i want to just made standing balancing robot without autonomus mode, led's and servos.
i have connected these pins motors enable -pin 4 motors dir - pin6 motor1 - step 13 motor2 step -7 have modified ex_pins file without port change. |
|||
11-09-2015, 05:00 PM
(This post was last modified: 11-09-2015 05:07 PM by MaxMagic1986.)
Post: #14
|
|||
|
|||
RE: B-Robot on Arduino uno
and what resolution of motors i should use? Maybe here is somebody who can help me with code? I've been spend many hours soldering pcb, an wiring everything. I not use 3d printed parts, everything done with hands from alluminium. It is sad thing, that robot does not want to work with atmega 328, and the code itself is dificult for understand for me.
motors only start spining little bit immedeatly after switching on. 1 sec, not more and then device not responding |
|||
11-09-2015, 06:38 PM
(This post was last modified: 11-09-2015 06:45 PM by KomX.)
Post: #15
|
|||
|
|||
RE: B-Robot on Arduino uno
MaxMagic1986 Wrote:the ex robot code does not compiling. I use ide version 1.06 Quote:i try to add this part of code to EX_robot file and remove ewerything that i not use. Quote:and what resolution of motors i should use? Maybe here is somebody who can help me with code? I've been spend many hours soldering pcb, an wiring everything. I not use 3d printed parts, everything done with hands from alluminium. It is sad thing, that robot does not want to work with atmega 328, and the code itself is dificult for understand for me. Create a new sketch and replace all the text of this code. Test the stepper motors. P.S. PIN 13 replaced by PIN 8!!! Suddenly you want blinked LED... Code: #include <Wire.h> P.P.S. Please, in the future is described in detail that you can not, the sketch is compiled normally, or an error during compilation (what?) |
|||
12-20-2015, 06:40 PM
Post: #16
|
|||
|
|||
RE: B-Robot on Arduino uno
(11-06-2015 09:21 AM)sasa999 Wrote:(11-06-2015 09:13 AM)legin.37 Wrote: Because UNO is more cheaper ...More cheaper!!!??? Подскажи плиз как ты решил проблему отсутствия пина 12 на promicro. Я в коде поправил на один из свободных согласно схеме пинов (E6) но он как то конфликтует с сервой по прерываниям (заработало только после отключения сервы в коде). |
|||
12-20-2015, 09:15 PM
(This post was last modified: 12-20-2015 09:22 PM by sasa999.)
Post: #17
|
|||
|
|||
RE: B-Robot on Arduino uno
Я не использую серво для поднятия робота
http://forumsjjrobots.com/thread-738.html потому могу и ошибаться, но.. Попробуй заменить pinMode(12,OUTPUT); на pinMode(6,OUTPUT); и PORTD,6 на PORTD,7. p.s. 12-й пин это вовсе но проблема - можно и без ПроМикро обойтись ![]() |
|||
12-22-2015, 09:18 AM
(This post was last modified: 12-22-2015 09:20 AM by michael_s.)
Post: #18
|
|||
|
|||
RE: B-Robot on Arduino uno
(12-20-2015 09:15 PM)sasa999 Wrote: Я не использую серво для поднятия роботаДа, я так и сделал , только еще пришлось закомментить инициализацию серв , иначе на PORTD,7 ничего не появлялось. А для поднятия робота ты просто поменял в коде углы отключения моторов ? Поделись секретом ![]() |
|||
12-22-2015, 10:06 AM
Post: #19
|
|||
|
|||
RE: B-Robot on Arduino uno | |||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)