Friday, April 1, 2016

Makeblock mCore Information

Overview

mCore board
The great folks over at Makeblock have created a nice little board for creating robots, the mCore.

The mCore is basically an Arduino Uno plus
  • dual motor controller
  • two serial RGB LEDs (WS2812 aka "NeoPixels")
  • piezo buzzer
  • light sensor
  • IR LED
  • IR receiver
  • button
  • header block for either a bluetooth or 2.4GHz radio
  • four RJ25 connectors for external peripherals

The board is intended to be used for teaching programming, robotics, internet of things, etc.  As a learning tool, it is primarily used with the custom version of the Scratch programming environment called mBlock.  There is also a library for regular Arduino IDE programming as well.

What is lacking, however, is a good write up on the various pin assignments used for the on-board peripherals that Makeblock added.  Thankfully, at least there is a schematic to help us out.

Pin assignments

Based on the schematic, here are the pin assignments.  Additional detail on each peripheral is provided below the table.

Arduino mCore pin assignments
D0/RXD RXD on external radio connector
D1/TXD TXD on external radio connector
D2 IR receiver input
D3~ IR LED output (HIGH = ON)
D4 M2 direction (HIGH = CCW)
D5~ M2 PWM (speed)
D6~ M1 PWM (speed)
D7 M1 direction (HIGH = CW)
D8 Buzzer output
D9~ Pin 5 on RJ25 #2
D10~ (SPI) SS Pin 6 on RJ25 #2
D11~ (SPI) MOSI Pin 5 on RJ25 #1
D12 (SPI) MISO Pin 6 on RJ25 #1
D13 (SPI) SCLK Blue LED / Serial out to WS2812 LEDs
A0 Pin 5 on RJ25 #4
A1 Pin 6 on RJ25 #4
A2 Pin 5 on RJ25 #3
A3 Pin 6 on RJ25 #3
A4 (I2C) SDA Pin 2 on all 4 RJ25 connectors
A5 (I2C) SCL Pin 1 on all 4 RJ25 connectors
A6 Light sensor input
A7 Button input, low when pressed
Arduino Pin mCore function

Motor Controller

Motor Controller
The Toshiba TB6612 is used as a dual channel motor controller.  The inputs to the controller for each motor are a PWM pin for speed and two direction pins.  The mCore designers simplified the interface such that a single Arduino digital pin controls direction (it is inverted in hardware to provide the second direction input to the motor controller) while a second PWM pin controls speed.

The M1 connector on the board is controlled by D6 (PWM speed) and D7 (direction).  When D7 is HIGH, the motor turns CW.  When D7 is LOW the motor turns CCW.

Likewise, the M2 connector is controlled by D5 (PWM speed) and D4 (direction).  However, in this case the function of D4 is reversed. When D4 is HIGH the motor turns CCW, and when it is LOW it turns CW.

Reversing the function of the two direction pins may seem odd, however, when you think about it, the motors are generally on the opposite sides of the robot so they need to turn opposite directions for the bot to move either forward or backward.  Consequently you can use the same 'direction' setting (HIGH or LOW) on both outputs to get the bot to go in one direction, for example, forward.

Serial RGB LEDs (WS2812 aka NeoPixels)

WS2812 Serial RGB LEDs
There are two WS2812 RGB LEDs on the board.  These share a pin (digital pin 13) with the traditional LED seen on most Arduino boards.  You can use any of the existing NeoPixel libraries to control these LEDs.

In addition, the pin (D13) controls a blue LED on the board so the standard Arduino blink sketch will work correctly on the mCore.


Piezo Buzzer / Speaker

Speaker
 The speaker is connected to digital pin 8.  You can drive this pin using the standard Arduino tone() library call.



Light Sensor

Photocell
The light sensor is a standard CdS photocell configured as a voltage divider.  This is hooked to analog pin 5 so you can read the voltage (and hence the amount of light) using analogRead().


IR LED

IR LED
The IR LED is simply hooked to a digital output pin (digital pin 3). You can use this to transmit data or to detect objects in front of the bot (by bouncing light off of objects and reading it with the receiver).

IR Receiver

IR Receiver
The IR receiver, on digital pin 2, is intended to be used with the included remote control. It can also be used in conjunction with the IR LED for communications between bots.  The Makeblock library includes routines to read the button presses from the remote.

Button

Pushbutton
This is just a basic pushbutton with a pull-up resistor hooked to analog pin 7.  When the button is pressed, the value on A7 will be low.  It can be used to start your program or pretty much any other function you program in.  Unfortunately the designers wasted an analog input with just one button.  They could have included more buttons on the same pin by simply creating a voltage divider network with each of the buttons having a different resistor (and thus a different voltage / value when reading A7).

Radio Headers

Radio headers
The bot comes with either a bluetooth or 2.4GHz radio. This is the connector for the radio.  The design allows the radio to communicate using the standard Arduino Serial() calls.

RJ25 Connectors

RJ25 Connectors
The four RJ25 connectors make it easy to connect a variety of peripherals to the mCore. The top of each connector has a color coded block to indicate the types of peripheral that can be attached.  In turn, the peripherals themselves have color coded connectors.  Hooking things up is as easy as matching the colors.
Each connector has power (+5) and ground connections along with the I2C bus clock and data pins.  The remaining two pins on each connector have either two digital or two analog port pins, depending on which connector it is.
Port 1 has digital pins 11 (PWM) & 12.  Port 2 has digital pins 9 & 10 (both PWM).  Port 3 has analog pins 2 & 3.  Port 4 has analog pins 0 and 1.

25 comments:

Admin said...

nice diagrams to see thanks for sharing
Bluetooth Receiver Blog

gotoandlearn said...

We all know the importance of Adobe Photoshop. There is no doubt that Adobe Photoshop is one of the best photo retouching and editing software. If you are looking for the best photoshop alternative , then Affinity Photo is the best choice for you. Affinity Photo is fully compatible with Photoshop and other file formats. The app is mostly used by photographers and designers and is less expensive than Photoshop.

mohit said...

I have read your blog its very attractive and impressive. I like it your blog.

Unknown said...

It is very helpful for our project. Thank you and keep in touch

Nathan William said...

Engineers who wish to migrate to Australia must submit a Competency Demonstration Report and the Engineers Australia must approve it. Thus, engineering students look forward to getting Cdr Australia which assists them to get a flawless CDR. This reduces the chances of rejection by the EA.
Most students and experienced civil engineers are today looking forward to migrating to Australia as the job scope is better and bigger with a high pay scale. Therefore, getting CDR help is the only scope to gain entry into the country. Choose Myassignmenthelp.com.
The CDR for Engineers Australia must be impressive and abide by the ANZSCO code and guidelines. It should also showcase the skills of the applicants as a suitable civil engineer to work according to the Australian rules and regulations.
The service providers who assist the students with CDR have experienced CDR report writers. These writers know the requirements of a CDR and do it accordingly.

Assignment Help: My Assignment Help Australia said...

My assignment help is a service you can opt for any kind of academic support like essay help, thesis writing, case study or dissertation writing. The format of all the papers you would get perfect and the content would be thoughtful and logical as per the topic.

Assignment Help | AllAssignmentHelp

Student Life Saviour said...

Ask the experts of Sydney Australia to do my assignment in Sydney
and the experts of Student Life Saviour to do my assignment in Singapore for best and guaranteed grades.

Unknown said...

Very nice!!! This is really good blog information thanks for sharing.
Paperssolution
topacademictutors

Domenic Tylor said...
This comment has been removed by the author.
ammie said...

The personal statement writing is an integral segment of a person's Curriculum Vitae. It not only allows you to describe your personality, but it also provides you with an opportunity to advertise your key abilities and skills in front of an employer or an admission committee. Whether you are applying for a job or a higher course of study, you'll require a compelling personal statement to can stand out in the crowd. Unfortunately, not everyone is born with impeccable writing abilities, which is why a great number of students require personal statement help from other sources to finish their CV.

Domenic Tylor said...
This comment has been removed by the author.
Bella said...

Thanks to sharing information it’s very helpful to me.
Paperssolution
studyhawks
pay someone to do assignment
write my essay

Olivia Crew said...

A very high level post with a knowledgeable information .thanks you for giving me such a nice information. If you need any college level Assignment Help at reliable quality with better work. Kindly visit livewebtutors website we providing best assignment help services in Australia, USA, UK, UAE, and Canada etc.
Read more now :- Assignment Help Australia

Frank Kristopoulos said...

So far, I found this website very professional for assignment writing. I took Assignment Help from them for my Science homework. I am really happy with the experience and I will recommend this website to you guys if you need quality Academic Writing Service for your project.
I had to complete my computer science Assignment help and I was worried because my assignment was not ready. I took the help from google but still fail to write. Then, I took  civil engineering assignment help  from Myassignmenthelp.com and I was amazed by the work I received. Their expert provided me the instant support and helped me in my assignment. Thank you guys for your assignment help and support.

Zayn said...

Websites are very important part of every marketing strategy in 2019 If you have a business and running marketing campaign dont lose this end develop your website now from professional web design company in Dubai and get more leads.
https://www.dowgroup.com/

Zayn said...

Websites are very important part of every marketing strategy in 2019 If you have a business and running marketing campaign dont lose this end develop your website now from professional web design company in Dubai and get more leads.

Domenic Tylor said...
This comment has been removed by the author.
Frank Kristopoulos said...

Assignment help solution library is an initiative to help students get solutions to tough assignments, where they can buy solutions to pre-existing assignments and can learn from the high-quality detailed solutions created by various do my coursework . These solutions come with step-by-step calculations and can be used by students to understand the concepts of the assignments and allow students to get Fast essay writing service  at a pocket-friendly price! One of the best things about online assignment help library is that you get the solutions immediately. You purchase the assignment, and it is immediately sent from our library to your email. Some of the popular subjects for online assignment help are Exercise Physiology Assignment Help , Human Resource, Finance, Nursing, Fluid mechanics assignment help , Engineering, Programming, Web development, and Religion assignment help . These subjects require a thorough knowledge of the subject matter and can be handled by experienced experts who can create customized solutions as per the requirements of the assignment, and is easy to understand. Also, there is a feedback mechanism for each assignment solution that you purchase, and we continuously try to improve the online assignment solutions based on your feedback.

Lucia Mandela said...

norton.com/setup - Norton security program can secure either one device or up to ten devices and keep the whole network safe from malware such as worms, spyware, rootkits, etc. For getting Norton Setup, visit norton.com/setup 

Ethan Lee said...

We have stepped into the writing industry a decade back, and since then we have been continuously developing ourselves and upgrading our services. Order your supply chain management assignment help and experience a best in class service. Our research and development department continuously gives the effort to bring out services that we can offer along with our writing service which in turn will help both you and us in giving all the required facilities under one roof.

We boast a team of degree holders who provide premier quality calculus assignment help to students. It includes industry practitioners, experts and professors from different colleges and universities. Each member of this team possesses in-depth knowledge of calculus. The best part of our expert team is the culture mix. We have appointed mathematics experts from different countries and varied cities like UK, USA, Australia, New Zealand, Malaysia, Singapore, etc. So students, who often search ‘can someone find me a calculus tutor near me’, are likely to get benefitted by our services. We dedicate a task to an expert who is well aware of the regulations followed by the educational system and university of a particular region or country. Owing to their knowledge and experience, they potentially solve each assignment with perfection

Puremelda said...

Despite the firm giving Political Custom Writing Services to the clients, they do not compromise the standard of an article, as they continuously give high-quality Political Science Essay Writing Help that enable the customers to attain profound grades in their Political Science Essay Writing Service Online.

Domenic Tylor said...
This comment has been removed by the author.
Frank Kristopoulos said...

MyAssignmenthelp.com being one of the most active  how to write an annotated bibliography for  websites has a pool of over 4500+ assignment experts from Australia, UK and US. They are highly qualified and skilled professional writers who have vast experience in writing assignments, gpa calculator , dissertations, essays, research papers, term papers etc. Each expert is chosen after rigorous testing and has to prove his academic credentials.

meldaresearch said...

Are you eager to hire fast, timely, and reliable Research Paper Help Online? Find the best Online Research Paper Help Services for all your Custom Research Paper Writing Services.

Term Paper Writing Services said...

Our Research Proposal Writing Service is accessible online via a majority of mobile devices to bring Best Research Proposal Writing Providers close to you. Students can access Online Research Proposals Services from any location if they have a pertinent mobile device.