43 Comments

  • Andrej Škraba

    Commands are sent to node.js via request/response mechanism. In the address line of the browser one writes:

    212.235.232.101:8080/1/100/1 – forward
    212.235.232.101:8080/2/100/1 – stop
    212.235.232.101:8080/3/100/1 – backward

    100 is a parameter of speed of DC motor, it could go from 0 to 255.

  • Matej Mlakar

    Čestitke da si prišel na Slashdot, samo ne vem kaj je tako posebnega pri tem robotu. Pa prosim nauči se v stavke dodajat angleške člene a/an.

  • Andrej Škraba

    Hvala za čestitke. Zadeva je predvsem zanimiva zaradi tega, ker omogoča kontrolo strojne opreme s pomočjo javascript-a; brez c, c++ jave, … Tu je ključna beseda tudi node.js Druga stvar, ki je tu zanimiva, pa je enostavna realizacija brezžične komunikacije z arduino-m. Pri angleščini se bom drugič skušal bolj potruditi, hvala za namig.

  • Andrej Škraba

    Apache is installed to provide the working of node.js over WiFi. We have tested the node.js without Apache however, the system didn't work. The cause could be in Ubuntu settings but this has to be examined further. After installing Apache, access to node.js over our Eduroam WiFi network worked. There is no conversion of the signals over apache to arduino. Nevertheless, as the side effect, Apache server is, in this case, on wheels serving it's home page.

  • nyetloki

    Dude, ditch the usb hub for a 2 dollar one (A usb hub single chip ic like the gl850/852) , pop the case for both the hub and the mk802, and ditch the usb cables. That will save you atleast half a pound of weight.

  • Andrej Škraba

    No, I'm located in Slovenia. The platform is connected to the University of Maribor Eduroam Network. In principle, this should work with no additional setup on your any network. You can make described platform by yourself; all you need is one arduino enthusiast and one node.js enthusiast and some positive view on Linux.

  • Andrej Škraba

    Thank you for the tip; we have just picked up stuff found in our Laboratory to quickly test, does it work. There is at least two meters of excessive USB and other cables on board. There was no time to shorten the cables nor search for better hub solution. Additional idea would be to use hackberry a10 instead of MK802. Tip for producers would be to put micro USB connectors on boards.

  • candle3090

    The Hackberry A10 has two exposed usb ports on the pcb to which nothing is soldered. You could attach a micro USC connection to either of the two if you feel like doing a little bit of soldering work.

  • soyanutella

    Will any Arduino clone work with an ODroid U2 board under Ubuntu Linaro 12.11 ARM ? How did you interface it with your MK802 softwarewise ? Sorry I am a newbie. Thank you

  • Andrej Škraba

    For presented example the installation provided by Miniand was used. Image file was prepared with the aid of Image Writer on Micro SD card and inserted to MK802 which make MK802 to boot to Linux.
    Then node.js, apache, arduino IDE and firmata were installed. This enables JavaScript/ECMA Script access to hardware.
    ODroid U2 board is very interesting, powerful however, I’m not familiar with it.

  • soyanutella

    Thank you for your fast response ! Do you have any resources to recommend so that I can leanr more about Arduinos etc.. ? (websites or books)

  • Andrej Škraba

    Best start is official arduino site. When you buy arduino board, which is very cheap, you can explore the examples which are included in arduino open source IDE software and are very informative. For start, I would suggest getting the board and explore examples.

  • Andrej Škraba

    P.S. In principle, if you have Linux up, on your board, arduino IDE should be easily installed. On MK802 you execute: a) sudo apt-get install arduino / and if needed b) sudo apt-get install librxtx-java. Arduino IDE is based on java so java environment is needed to run.

  • soyanutella

    Do I need to install additional packages in order to make the Arduino communicate with the ARM board ? I've heard about Firmata firmware for Arduino boards. Is it required ? Thank you.

  • Andrej Škraba

    No additional packages would be needed (nor Firmata). Communication with arduino should be established just after arduino IDE is installed. Firmata is put on the arduino board and is included in the set of examples with arduino IDE software. In our case Standard Firmata example was used. If you want to use it with node.js you have to install node.js Firmata library (execute command: npm install -g firmata/after installing node.js) but is not needed to make arduino to communicate with ARM board.

  • Andrej Škraba

    I’m not familiar with those two but since they are both based on arduino, Firmata should work since Firmata is only one of the arduino libraries which you put on the microcontroller board. However, if you want to make it work with node.js you would need to have a Linux installed somewhere.

  • soyanutella

    Thank you so much ! You have really saved me a lot of time. I was searching through a tons of threads and website but did not find the answers. One last question : which Arduino model would you recommend for me ? I see you used the Uno model.

  • Andrej Škraba

    I would suggest uno for start. There are other models which are tempting, for example Arduino Micro designed in cooperation with Adafruit Industries or Leonardo, however, uno is very well tested and very well supported with examples.

  • Seo Seo

    Andrej, very cool, respect!

    If it's not hard, please, write what hardware was used for this robot:
    – MicroPC MK802,
    – Arduino UNO,
    – what model of motors?
    – what model of motor drivers?
    – any other devices or hardware?

    Thanks a lot for your answer!

  • Andrej Škraba

    хиррвиго …… СepВep, РоБот … I actually noticed that I have lost a bit of my ear for English due to the listening of other non native material on the web which is, some, nonetheless excellent… therefore I have put on some subtitles on. I will try to do it better on the next occasion 🙂

  • Andrej Škraba

    HW specification:
    MK802 MINI PC for Android with DDR3/1GB memory purchased at Miniand, Australia
    Arduino UNO SMD Edition (Made in Italy)
    Arduino MOTOR SHIELD, Shield model: Motor R3 (Made in Italy)
    Pololu 5'' Robot Chassis RRC04A
    Pololu micrometal small brushed DC motors (two motors on Chassis)
    Logitech USB 2.0 Hub H-UE5a
    Conceptronic Universal USB Power Bank 2200 CPOWERB2200 5V 1A 2200mAh (Li-Polymer)
    Trancsend 8GB Micro SD HC Card (pluged into MK802)

    Best regards, Andrej.

  • AborT40K

    АААААААААААААА!!!!!!!!!!!!!11

    Злой ученый гений-коммунист из восточной европы 🙂

    IronMan3!

  • j anomymous

    Hi great project.
    1) Can you generally use all android mini pcs WITHOUT a vga monitor being attached to it ? I want to buy QC802 RK3188 Quad Core Android 4.2 to make an embedded system(ie i wont have a large monitor attached). will the device boot without a monitor attached?
    2) Can you interface arduino and android operating system as opposed to ubuntu.
    3)Where can i read up on integrating arduino and android, as well as your project without asking a tonne of beginner questions.
    thanks kindly

  • Andrej Škraba

    I'm glad you like it, thank you. 1) I have tested MK802, Hackberry a10 and quad core GK802. They all work in the same manner, without monitor. I have tested GK802 without monitor on start and it boots. 2) I'm asking the same question myself, and it should be possible; one would need node.js, firmata and Arduino IDE on Android (A. is based on Linux). 3) Good start would be installing node.js, firmata and Arduino IDE. Some ideas can also be found on rwldrn/johnny-five, noduino. I'm preparing some.

  • Leonidas Andrade Otalora

    Hello, I'm trying to do the same with a ug802 and picuntu, but not how to make picuntu recognize the arduino, which version of Ubuntu are working and where you can go? and because arduino port by connecting to USB or OTG? Thank you. [email protected]

  • Andrej Škraba

    Lubuntu version of Linux which is based on Ubuntu has been used. Info about the operating system from the console: DISTRIB_ID=Ubuntu / DISTRIB_RELEASE=12.04 / DISTRIB_CODENAME=precise / DISTRIB_DESCRIPTION="Ubuntu 12.04 LTS" / Linux version 3.0.36-t1+ ([email protected]) (gcc version 4.6.3 (Ubuntu/Linaro 4.6.3-1ubuntu5) ). Arduino is connected via USB port by /dev/ttyACM0. Firmata should be uploaded to the Arduino board as well as Node library Firmata should be installed on MK802 (besides node.js).

  • KerveloStream

    Do you have an idea which size the DC-jack is? I need USB-DC cable for the hub as I'd like to connect it to a powerbank!

Leave a Reply

Your email address will not be published. Required fields are marked *