Тёмный

First attempt at floodfill based Micromouse (Arduino nano) (Link to code in Description) 

Pranjal Agrawal Robotics
Подписаться 120
Просмотров 13 тыс.
50% 1

First attempt at Micromouse (Arduino nano)
github.com/Pra...
The wall alignment is pretty bad because I was playing around a bit with how aggressive the wall following is and how long it takes to align itself with a front wall and set the values a bit too low.

Наука

Опубликовано:

 

7 окт 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 55   
@111.ashwin
@111.ashwin Год назад
Superb work!
@01aragog78
@01aragog78 8 месяцев назад
love your work 👍👍
@pranjalagrawalrobotics
@pranjalagrawalrobotics 8 месяцев назад
Thanks!
@Aniruddha_r
@Aniruddha_r Месяц назад
@pranjalagrawalrobotics Hi Pranjal, You have done amazing work, But I have few question. can you please let us know which IR sensors you have used. also you used sensor value with array of 7 elements, reason for selecting 7. is any specific logic/reason? Morver in you code you used "sensor_on_pin" and its connected to pin no. 17, which sensors is this exactly. you connected a one diagonal left sensor to pin no. 4 and on same pin you connected one of the motor pin. Is this by mistake in code, or what is reason behind this dual pin usage? Your help will be appreciated..
@GyanshRocks
@GyanshRocks 2 месяца назад
Amazing
@MicroMouse
@MicroMouse 5 месяцев назад
Very nice
@TheTurmanDreams
@TheTurmanDreams 3 месяца назад
Genial!!!!!!!!!
@MohitSharma-ci9kd
@MohitSharma-ci9kd 2 месяца назад
Hello brother can you please provide the circuit diagram, because there are some doubts in circuit.
@chanhtri3151
@chanhtri3151 16 дней назад
bạn có thể ra video hướng dẫn làm được không
@omdhardubey4888
@omdhardubey4888 Месяц назад
Hlo pranjal can you pls explain what is sensor on point in your code
@amaanmeer8014
@amaanmeer8014 6 месяцев назад
Amazing work! Is it possible to get the schematic diagram?
@suricool99
@suricool99 4 месяца назад
Nice work. I saw your code and could see that you are adjusting the bot alignment with left and right ir sensors only with a threshold and not any pid . Any specific reason for this?
@pranjalagrawalrobotics
@pranjalagrawalrobotics 4 месяца назад
The bot does use PID for wall following (pid is used on both the ir sensor reading and the encoder reading) Threshold is only used for detecting walls after the bot has reached the centre of a block and wants to scan its surrounding walls.
@suricool99
@suricool99 4 месяца назад
@@pranjalagrawalrobotics in your code i could see that you are calculating error based on encoder count difference and computing the pid value from that. And then computing wall error as difference between left and right ir sensors. Wall error +/- pid error+/- constant speed is the final output. Wall error is not from pid , it's computed directly. I was curious to know why no pid for ir sensor and only for encoder count
@pranjalagrawalrobotics
@pranjalagrawalrobotics 4 месяца назад
@@suricool99 just checked, and yeah, you’re right, I misremembered. Basically, what happened was that we started working on the bot around a week before the competition. In fact, we were still working on it on the day of the competition. We simply ran out of time and weren’t able to tune the PID for the sensors and so we computed it directly.
@suricool99
@suricool99 4 месяца назад
@@pranjalagrawalrobotics we are also in a similar situation. We have got the constant speed part and wall follower part to work independently. We are stuck at a place where we are struggling to combine both speed/position based control along with wall follower pid control . Do you have any suggestions? How can we do this. ?
@pranjalagrawalrobotics
@pranjalagrawalrobotics 4 месяца назад
@@suricool99 I can’t be sure, since I never got around to implementing pid for the ir sensors and combining it with the encoders, but maybe you could try computing the pid value from the ir sensors and encoders independently and then combine them in a ratio you tune. Like, instead of directly adding/subtracting either the encoder pid value or the ir sensor pid value, you could compute smth like (0.7*ir_pid + 0.3*encoder_pid) and add/subtract that from the speed. I would assume that giving a higher weightage to ir sensors would work slightly better since they can actually sense and avoid the walls whereas if you start off slightly off angle, the encoders would be fighting to drive you closer to the walls.
@hirushasasanka4220
@hirushasasanka4220 3 месяца назад
what is the main ino file need to upload , and what is the motor you used can you tell the model (encoder) , thank you great work brother
@kinhkong69z62
@kinhkong69z62 Месяц назад
do you use compass ?? like mpu6050 ?
@peopledjester7907
@peopledjester7907 4 месяца назад
A question, did you design the PCB board you used for the project yourself? And if so, could you provide it to me?
@luisduvantorradomora4131
@luisduvantorradomora4131 4 месяца назад
proporcionas el código pero no el diagrama, como podría servir sin eso
@charlysoledad3180
@charlysoledad3180 10 месяцев назад
its necessary use 5 IR sensors, or can i use 4 or less?
@pranjalagrawalrobotics
@pranjalagrawalrobotics 10 месяцев назад
I think atleast 3 are needed. One for each of the side walls and one for sesing the front wall. Wall following will be pretty tough though woth so few sensors. With 4, you could place two directly perpendicular to the side walls and two slightly angled. Although, this setup may have difficulty identifying the front wall in time. 5 really is convenient.
@m4s0314
@m4s0314 11 месяцев назад
how did u can simulator in mms
@pranjalagrawalrobotics
@pranjalagrawalrobotics 10 месяцев назад
I used this simulator - github.com/mackorone/mms They have provided code to connect the simulator to an arduino. In the arduino code, you can simply make calls to the provided simulator API instead of the motor driver and similarly make calls to the API instead of reading data from the sensors,
@m4s0314
@m4s0314 10 месяцев назад
@@pranjalagrawalrobotics can i have your eg code in mms , thanks for replied
@komilelmurodov3401
@komilelmurodov3401 10 месяцев назад
Code
@pranjalagrawalrobotics
@pranjalagrawalrobotics 9 месяцев назад
@@m4s0314 drive.google.com/drive/folders/1xG0jK4TJxe-gcxNtGWqhTgi0iRqMKp3k?usp=share_link The code modified to work with the simulator is older though
@pranjalagrawalrobotics
@pranjalagrawalrobotics 9 месяцев назад
@@komilelmurodov3401 drive.google.com/drive/folders/1xG0jK4TJxe-gcxNtGWqhTgi0iRqMKp3k?usp=share_link
@icybreath1
@icybreath1 6 месяцев назад
How did you make the maze? I want to try making the maze at home to test a micromouse
@0xatul
@0xatul Год назад
Hey great work! I know little about micromouse's but that's pretty amazing to watch. Few questions, why did the mouse stop once it reached the centre and why did you had to restart from the beginning at 0:52 ? Is is how the flood fill algorithm works?
@pranjalagrawalrobotics
@pranjalagrawalrobotics Год назад
The bot stopped at the centre because I have set it as the target. I haven’t programmed the bot to return to the start point so it stopped once it reached the target. The bot constantly updates its map of the maze as it explores. Hence, each subsequent run is better than the previous until the maze is completely mapped out. Hence, I restart it from the start point so that it can explore more and find better oaths (as it did!) You can learn more about floodfill and other maze solving algorithms here - www.123seminarsonly.com/Seminar-Reports/038/59360985-Maze-Solving-Algorithms.pdf, marsuniversity.github.io/ece387/FloodFill.pdf
@0xatul
@0xatul Год назад
@@pranjalagrawalrobotics that's helps thanks
@sergiopachecodiaz72
@sergiopachecodiaz72 6 месяцев назад
What component do i need?
@NoobTechAI
@NoobTechAI 9 месяцев назад
Do you use a distance sensor or an obstacle avoidance sensor?
@pranjalagrawalrobotics
@pranjalagrawalrobotics 9 месяцев назад
IR Sensor to measure distance
@ramshirbhate1319
@ramshirbhate1319 11 месяцев назад
Code plzz
@pranjalagrawalrobotics
@pranjalagrawalrobotics 11 месяцев назад
As stated in the title, the link to the code is in the description.
@01aragog78
@01aragog78 8 месяцев назад
so its arduino nano , can it work on arduino uno or how do i change it to work on arduino uno
@pranjalagrawalrobotics
@pranjalagrawalrobotics 8 месяцев назад
The code should work as is, though you should check how much ram the uno has. If it is less than the nano then you may have to modify the code a bit.
@01aragog78
@01aragog78 8 месяцев назад
@@pranjalagrawalrobotics and how to make it learn the make and fix the finish point to find the smallest path
@01aragog78
@01aragog78 8 месяцев назад
@@pranjalagrawalrobotics hey bro i checked your coed and tried to verify it but its showing an error that the encoder is missing. how do i solve it.
@rexcode9366
@rexcode9366 8 месяцев назад
How did you set the goal (how does bot know the goal position in the maze)?
@cowboygamer6980
@cowboygamer6980 4 месяца назад
In coding he just follows the right wall
@rexcode9366
@rexcode9366 4 месяца назад
@@cowboygamer6980 I know it's wall follow algorithm, but I want to know how does it determine the goal position?
@pranjalagrawalrobotics
@pranjalagrawalrobotics 4 месяца назад
@@cowboygamer6980nah, this uses the floodfill algorithm, not the wall following algorithm. That’s why it takes two completely different paths in the two runs.
@pranjalagrawalrobotics
@pranjalagrawalrobotics 4 месяца назад
@@rexcode9366it knows it’s starting position and that the goal is as the centre. It doesn’t know the wall layout.
@rexcode9366
@rexcode9366 4 месяца назад
@@pranjalagrawalrobotics yeah, I saw your GitHub repo. Can you make a tutorial on it, explaing in detail
@kinhkong69z62
@kinhkong69z62 9 месяцев назад
which motor you using ? in your github code the file .h meaning for ?
@pranjalagrawalrobotics
@pranjalagrawalrobotics 9 месяцев назад
I am using 600 rpm micro metal gear motors. .h files are called header files
@kinhkong69z62
@kinhkong69z62 9 месяцев назад
@@pranjalagrawalrobotics thanks
@kinhkong69z62
@kinhkong69z62 9 месяцев назад
are you using encoder motor ?
@pranjalagrawalrobotics
@pranjalagrawalrobotics 9 месяцев назад
@@kinhkong69z62 Yes
@kumarutkarsh1248
@kumarutkarsh1248 9 месяцев назад
can you please provide the link to buy this motor, also what batteries are you using @@pranjalagrawalrobotics​
Далее
The Fastest Maze-Solving Competition On Earth
25:22
Просмотров 20 млн
Forget About Raspberry Pi! Use Your Old Phone Instead.
9:09
Million jamoasi - O'zbekcha UFC
17:55
Просмотров 198 тыс.
I Made A Water Computer And It Actually Works
16:30
I Made The Ultimate Cheating Device
9:39
Просмотров 1,1 млн
Micromouse 2021 Lecture 5: Floodfill
35:46
Просмотров 10 тыс.
Affordable Filament Recycling?
27:29
Просмотров 157 тыс.
Can water solve a maze?
9:09
Просмотров 13 млн
Self-Learning Maze Solver Demonstration
1:39
Просмотров 9 тыс.
Самый длинный ноутбук!
0:23
Просмотров 55 тыс.
Распаковка Телевизора.
5:27
Просмотров 20 тыс.
iPad Turned Into Car Touchscreen (Via: @biggibril)
0:11