Read, reblog, and resonate!
My wheeled robot is turning around. The power of new motors is enough to do it.
New motors and 2 additional batteries are installed on wheeled robot.
KemaMem is a robot memory class. At each iteration of the loop () , the speed and rotation data are written to the memory, for a total of 3 seconds. The meaning of this memory is to roll back, i.e. If the robot rode forward, then it rolls back, etc.
KemaLED is a class for controlling a full-color LED indicator. Blinking means radio control mode, constant light - robot mode. There are three colors: Green - the robot rides ahead (no obstacles); Yellow - the robot is stopped; Red - the robot rides back. The blue LED means a rollback from memory.
KemaState is a class for saving robot status. It records sensor values, speed and rotation, if any. In the sketch for Arduino Mega, two variables of this class are used: current and previous states.
KemaUS is a class for working with ultrasonic sensors. If the distance to the obstacle is more than 30cm, the robot moves forward, the light on the LED indicator is green. At a distance of 15 - 30 cm - it stops, the LED indicator is yellow. When the obstacle approaches less than 15 cm - the robot travels back, the LED indicator is red.
Arduino sketch for remote control of robot.
Description, designs, sketches and links to used parts: https://vk.com/topic-73778892_35223613
I've added NiMh batteries for motor feeding. Li-ion 650mA is used for arduino and other electronics.
Description, designs, sketches and links to used parts: https://vk.com/topic-73778892_35223613
IR sensors test. Robot stops at the edge of the table Description, designs, sketches and links to used parts: https://vk.com/topic-73778892_35223613
IR sensors on wheeled robot
Description, designs, sketches and links to used parts: https://vk.com/topic-73778892_35223613
Test of ultrasonic sensors on wheeled robot.
Description, designs, sketches and links to used parts: https://vk.com/topic-73778892_35223613
Ultrasonic sensors are mounted on wheeled robot.
Description, designs, sketches and links to used parts: https://vk.com/topic-73778892_35223613
My second version of wheeled robot on arduino. Here you can find description of the project, designs, sketches and links to used parts: https://vk.com/topic-73778892_35223613
Один із моїх проектів. Поки що це машинка з Lego керована по Wi-Fi. Оновлення порівняно цим постом.
Специфікації / Specs:
Car: Lego studless 2x4WD Front steering Rear differential Working lifting up/down 2 DIY DC motors 2 hobby servos Ultrasonic distance sensor HC-SR04 (not operational now) L298N Dual full-brige driver 9V power supply (to be replaces with 9V rechargeable battery) DC-DC converter Vin, 5V, 3.3V Arduino Pro Mini (ATmega328P 5V) 0.96" I2C 128X64 OLED Display Module Esp8266-01
Remote Control: Arduino Mega2560 Esp8266-12E Shield 2.4" TFT LCD Touch Screen Display Shield Joystick
Загалом система звісно виглядає занадто замудреною але справа в тому що я по ходу справи розбираюся з різними елементами. Наприкла “Пульт” явно виглядає лишнім, але його я використовую для відпрацювання роботи тачскріна а також саме з нього я почав бавитися з Wi-Fi модулем Esp8266. В ідеалі треба буде розробити або окремий додаток або спробую перейти на Blynk.
З реалізацією зв’язку між двома Esp8266 через Wi-Fi я, звісно добряче награвся, як і з зв’язком кожної з ним з Arduino. Власне, встановити зв’язок не так складно але зробити його миттєвим і надійним виявилося не просто.
Загалом схема така: сигнал з джойстика і з тачскріну обробляється на Mega2560 і одним рядком з ключовими словами, черезе серійне з’єднання надсилається на Esp8266-12E. Останній працює як сервер і викладає String на сторінку за певною IP-адресою. Esp8266-01 з машинки підключається як клієнт до севера, завантажує String з даними, передає його через серійне з’єднання до Pro Mini. Pro Mini отримає String, аналізує його, розбирає всі параметри і керує драйвером L298N, серво моторами, LED-ами (при чому задні чотири LED живляться від 9В і включаються транзистором). Для відладки всі параметри виводяться на OLED дисплей.. Для живлення машинки планую встановити “крону” на 9В, поки що живиться шнуром від зовнішнього блока з окремими DC_DC конвертером на 3.3В, 5В і Vin.
В планах напхати ще сенсорів на машинку і певною мірою автоматизувати. Це ж має бути робот а не просто радіокерована машинка. Власне з самого початку ультразвуковий дальномір був встановлений на сервомоторі щоб можна було сканувати в певному радіусі. Найближчим завданням буде розібратися з можливістю відправляти дані з машинки на сервер. Поки не зовсім собі уявляю як можна це реалізувати, оскільки бракує знань про те як функціонують мережі. Ну і окрім того треба буде потроху позбуватися лишніх дротів, збирати їх докупи і потроху оптимізувати зовнішній вигляд.
Surprisingly NASA, like college, has a plethora of "extra-curriculars" including intramural sports and committees. Interns at Johnson Space Center (JSC) are uniquely involved in extracurriculars. JSC interns hold weekly meetings. Twice a month PIPE, a professional social group meets and SCuM, a social social group. PIPE hosts committees like professional development, social media (managing NASA Twitter & Facebook accounts), PAXC (Pathways Agencies Cross Center Connection), and Tours & Lectures. SCum hosts committees like Sports, Intern Video, Fancy Dinner, and Skydiving (an intern tradition).
I am currently the lead of Tours/Lectures. A group of us arrange tours at neat locations around JSC like flying a T38 jet trainer, the largest pool in the world where astronauts and Robonaut lab. Lectures are also arranged by the group including Anne Roemer, head of the Astronaut Selection Committee, Ginger Kerrick, Assistant Director for the International Space Station, and Everett Gibson, Moon Rock Expert.
PAXC is a group that unites all the NASA Centers. Every other week we video conference with all the other centers! Glenn in Ohio, Jet Propulsion Laboratory in California, Kennedy Space Center in Florida, Langley in Virginia. We get to hear about what the other centers are working on, lectures from their center leaders and dream about touring each other's centers.
Hacking into a lawnmower robot is another activity I take part in. We are converting an autonomous navigating lawn mowing robot into a tele-operated human controlled robot. This requires taping into the robots controls and adding wireless communication between the robot and controller. Using an Adruino controller we can send signals to the robot so we have been learning how to use it.
WAYS TO GET INVOLVED
Learn about some the lecturers we will be hearing from: Anne Reomer, Ginger Kerrick & Everett Gibson
Watch what NASA is doing to enhance the mission to Mars
Start your career with NASA and tune into a Virtual Career Fair and hear about internship, fellowships and scholarships October 8th 12pm-3:30pmCT
This tutorial shows simple step-by-step instructions to get the BMP180 pressure sensor wired up and programmed with the Arduino Microcontroller. We show how …
May 03, 2015 at 11:38AM Nanpy is a library that use your Arduino as a slave, controlled by a master device where you run your scripts, such as a PC, a Raspberry Pi etc. The main purpose of Nanpy is making programmers’ life easier, providing them a powerful library to create prototypes faster and make Arduino programming a game for kids. http://ift.tt/1bpLYRz