Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Replacing the brain shield v3.1 (Devia)
03-08-2018, 01:20 AM
Post: #1
Replacing the brain shield v3.1 (Devia)
Hello,

I am a student and i purchased the B-ROBOT EVO 2 Kit as a learning tool. I want to add several features (line following and ultrasonic sensor for obstacle detection for autonomous operation) to the robot at a later stage, but first, i would like to better understand the latest brain shield 3.1 by replacing it with commonly available components.

Quote:This SHIELD has:
* TWO stepper motor OUTPUTs
* TWO SERVO OUTPUTs
* I2C communications
* Push button (customisable)
* SENSOR port (SONAR, IR…)
* ESP12-E (ESP8266) WIFI module (you can communicate to this SHIELD from any smartphone/tablet/PC using it)

So, i would like to use an Arduino UNO R3 - is that possible or should i use the Leonardo? and then connect four L298N to drive the 2 stepper motors and 2 servo motors. I found the schematic for the brain shield in another post which i have attached here for convenience but i can't really understand what to do. I don't mind building the entire circuit as long as i can understand (and then explain to my teacher!) what's going on inside the complex brain shield.


Attached File(s)
.pdf  Schematic Brain Shield.pdf (Size: 100.95 KB / Downloads: 109)
Find all posts by this user
Quote this message in a reply
03-08-2018, 09:58 AM
Post: #2
RE: Replacing the brain shield v3.1 (Devia)
The brain sheld and B-Robot software is designed to be used with Arduino Leonardo.
You can use any other combination of hardware but you will have to put your hand to the software, you can not use it as it is.
For example you could use Arduino Uno and CNC Shield, or, as I did, Arduino Leonardo and Motor Shield from DF-Robot. But I had to rewrite some of the code.
Visit this user's website Find all posts by this user
Quote this message in a reply
02-12-2019, 12:34 PM
Post: #3
RE: Replacing the brain shield v3.1 (Devia)
Hi Paolo,

I want to replace the Brain Shield with an CNC Shield as well.
But I can´t figure out the code. In my case is for the Slider Project. I have a Leonardo + CNC Shield + two A4988 + ESP8266 (Wiifi).
So technically I have Everithing the project need.

The Brain Shield code goes like this:

// Configuration: Pins, servos, Steppers, Wifi...
void setup()
{
// STEPPER PINS ON JJROBOTS BROBOT BRAIN BOARD
pinMode(4, OUTPUT); // ENABLE MOTORS
pinMode(7, OUTPUT); // STEP MOTOR 1 PORTE,6
pinMode(8, OUTPUT); // DIR MOTOR 1 PORTB,4
pinMode(12, OUTPUT); // STEP MOTOR 2 PORTD,6
pinMode(5, OUTPUT); // DIR MOTOR 2 PORTC,6
pinMode(A0, INPUT); // WIFI CONFIG BUTTON => sensor imput
pinMode(13, OUTPUT); // Servo pin
digitalWrite(A0, HIGH); // Enable Pullup on A0
digitalWrite(4, HIGH); // Disbale motors

pinMode(10, OUTPUT);
pinMode(6, OUTPUT);
pinMode(2, OUTPUT);

delay(100);
Serial.begin(115200); // Serial output to console
//while (!Serial); // Arduino Leonardo wait for Serial port to open...
Serial1.begin(115200); // Wifi initialization

Serial.println("Camera Slider project");
// Button pressed at init?
if (digitalRead(A0) == LOW)
Serial.print("Button pressed at init...");
delay(2000);


And I replace it like this:

// STEPPER PINS ON JJROBOTS BROBOT BRAIN BOARD
pinMode(8, OUTPUT); // ENABLE MOTORS
pinMode(2, OUTPUT); // STEP MOTOR 1 PORTE,6
pinMode(5, OUTPUT); // DIR MOTOR 1 PORTB,4
pinMode(3, OUTPUT); // STEP MOTOR 2 PORTD,6
pinMode(6, OUTPUT); // DIR MOTOR 2 PORTC,6
pinMode(A0, INPUT); // WIFI CONFIG BUTTON => sensor imput
pinMode(13, OUTPUT); // Servo pin
digitalWrite(A0, HIGH); // Enable Pullup on A0
digitalWrite(4, HIGH); // Disbale motors

pinMode(10, OUTPUT);
pinMode(7, OUTPUT);
pinMode(9, OUTPUT);

delay(100);
Serial.begin(115200); // Serial output to console
//while (!Serial); // Arduino Leonardo wait for Serial port to open...
Serial1.begin(115200); // Wifi initialization

Serial.println("Camera Slider project");
// Button pressed at init?
if (digitalRead(A0) == LOW)
Serial.print("Button pressed at init...");
delay(2000);


Wifi is working perfect, but motors are not working..
Do you have any feedback?

(03-08-2018 09:58 AM)PaoloP Wrote:  The brain sheld and B-Robot software is designed to be used with Arduino Leonardo.
You can use any other combination of hardware but you will have to put your hand to the software, you can not use it as it is.
For example you could use Arduino Uno and CNC Shield, or, as I did, Arduino Leonardo and Motor Shield from DF-Robot. But I had to rewrite some of the code.
Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)