element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • About Us
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Experts, Learning and Guidance
  • Technologies
  • More
Experts, Learning and Guidance
Ask an Expert Forum Ask your Expert: Nico teWinkel - Software Engineer who specialises in firmware, C and Java.
  • Blog
  • Forum
  • Documents
  • Leaderboard
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Experts, Learning and Guidance to participate - click to join for free!
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • Replies 21 replies
  • Subscribers 292 subscribers
  • Views 3025 views
  • Users 0 members are here
  • experts
  • ask_an_expert
  • ask_the_expert
  • software
Related
See a helpful answer?

Be sure to click 'more' and select 'suggest as answer'!

If you're the thread creator, be sure to click 'more' then 'Verify as Answer'!

Ask your Expert: Nico teWinkel - Software Engineer who specialises in firmware, C and Java.

patkelly
patkelly over 13 years ago

Nico is element14's very first member expert and member of the month for October 2011.image

Nico teWinkel's expertise: Software Engineer who  specialises in firmware, C and Java.

 

A little about Nico: "I've been a software engineer for more than  20 years. Electronics has been a hobby every since I played with the  old 10-in-1 and 200-in-1 RadioShack kits back in the 70s when I was just  a kid. Right now I'm working part time for a local hardware company  creating firmware for their devices, which brings together my software  engineering skills with my electronics hobby/obsession, and I'm having a  great time!

Software engineering in C and Java, including  iPhone and Android development. Currently developing firmware for Texas  Instruments chips using CCS. Any project involving interfacing Android  with external devices would really spark my interest."
 
See Nico's Blog
 
If you need help on anything, please post your question here!
 
If your not already, you'll need to login or register ask your question - just click reply
  • Sign in to reply
  • Cancel

Top Replies

  • johnbeetem
    johnbeetem over 12 years ago in reply to Former Member +1
    bryan molina wrote: As the software becomes more pervasive, risk to the public (due to faulty programs) become an increasingly concern. Develop a realistic doomsday scenario where the failure of a computer…
  • roineust
    roineust over 12 years ago in reply to ntewinkel +1
    Hello Nico! I have tried to compile, upload and watch trough the serial monitor the test code here, that you sent me and it was working fine. Then i discovered that i need to connect to the bluetooth module…
  • roineust
    roineust over 12 years ago in reply to ntewinkel +1
    Hey Nico! Finally i am on the horse! Altough, still at the beginning of the physical building of the robot shape itself and thus, have not yet delt with the issue of 3D priniting these parts - but at last…
Parents
  • roineust
    roineust over 12 years ago

    Hello Arduino guys!


    This is the first time ever, that i am entering an arduino forum and there are so many options around here, i am not even sure that i am posting my question in the right place - if i am not, can you please explain or send me links or keywords for the correct pages? Thanks a lot!


    Here is my question:



    I am trying to build a robot, that uses the "Bluecontrol" android application.


    Here is the Bluecontrol app on google play:


    https://play.google.com/store/apps/details?id=com.gundel.bluecontrol&feature=search_result#?t=W251bGwsMSwxLDEsImNvbS5ndW5kZWwuYmx1ZWNvbnRyb2wiXQ..


    The robot, called "MegaPed", building instructions and arduino sketch are detailed on www.instructables.com, on this page:


    http://www.instructables.com/id/MegaPed/


    I have done everything exactly according to written and drawn instructions on that page, with only one change:


    I have switched this BlueSMiRF bluetooth module, which is quite expensive:


    http://www.amazon.com/SparkFun-Bluetooth-Modem-BlueSMiRF-Silver/dp/B004GTUI76/ref=sr_1_5?s=electronics&ie=UTF8&qid=1332730295&sr=1-5


    With this JY-MCU Arduino Bluetooth Wireless Serial Port Module:


    http://www.ebay.com/itm/251258723414?ssPageName=STRK:MEWNX:IT&_trksid=p3984.m1497.l2649



    Now, my problem is, that after uploading the sketch - My android smartphone, is trying to connect with the bluetooth module, but shows that the module (called "linvor" on the smartphone screen) is: "Paired but not connected" - And i am unable to proceed and control the robot from the Bluecontrol application.


    Maybe you can help me solve this problem or refer me to someone who might help me to solve this problem?


    Thanks a lot,

    Roi Neustadt.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • ntewinkel
    ntewinkel over 12 years ago in reply to roineust

    Hi Roi,

     

    Probably the best thing to do is to just post your question once, as a new topic (marked as a question), in the Arduino forum. Posting the same question in many different areas makes it more difficult for people to work together to help you figure it out. For all the posts you've already made, you might want to edit them to point to the one central question.

     

    Your project sounds like quite the interesting one, but unfortunately I don't know enough about the subject to be able to help much, sorry. I do have the same type of BT module as you have, and what you're working on is something that's on my want-to-do list, so if I have some time in the next week I will have a look.

     

    Cheers,

    -Nico

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • roineust
    roineust over 12 years ago in reply to ntewinkel

    Hello Nico!

    Thanks for these initial forum go about instructions!

     

    I will be waiting to hear from you how you have managed with building the bot, the JY-MCU version !!

     

    Thanks,

    Roi.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • ntewinkel
    ntewinkel over 12 years ago in reply to roineust

    Hi Roi,

     

    A good step in debugging is to break it down into pieces. In this case you are debugging the BT connection, so step one is to test just the BT communications.

     

    I tried it last night, by simply hooking the BT module to pins 10 and 11 and using it as a new serial port to read from. Then everytime something is read from BT it shows on the Serial monitor.

     

    I was able to use the app to connect and send single characters to my serial terminal display. To connect the app to the linvor BT module, all I had to do is press the menu button and choose "connect". I was doing this on a Samsung Galaxy S with Android 2.3.

     

    This is the code I used on my Arduino Uno, which is just a slight modification of the built in sample SoftwareSerial->TwoPortReceive.

     

    /*

      Software serial multiple serial test

     

    Receives from the software serial port,

    sends to the hardware serial port.

    */

     

    #include <SoftwareSerial.h>

    // software serial #1: RX (=TX of BT module) = digital pin 10, TX (=RX of BT module) = digital pin 11

    SoftwareSerial BTport(10,11);

     

    void setup()

    {

    // Open serial communications and wait for port to open:

      Serial.begin(9600);

     

      // Start the software serial port

      BTport.begin(9600);

     

      Serial.println("Data from Bluetooth:");

    }

     

    void loop()

    {

      // By default, the last intialized port is listening.

      // when you want to listen on a port, explicitly select it:

      BTport.listen();

      // while there is data coming in, read it

      // and send to the hardware serial port:

      while (BTport.available() > 0) {

        char inByte = BTport.read();

        Serial.write(inByte);

      }

    }

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • roineust
    roineust over 12 years ago in reply to ntewinkel

    Hello Nico!

     

    I have tried to compile, upload and watch trough the serial monitor the test code here, that you sent me and it was working fine.

     

    Then i discovered that i need to connect to the bluetooth module, from within the Bluecontrol app and not from the smartphone bluetooth settings - and at last the bluetooth module led stopped blinking and turned on constantly - and the Bluecontrol app gave an indication that it is connected to the "Linvo".

     

    I though that at last i will be able to make the robot servos move, according to touch commands on the Bluecontrol, on my smartphone screen - but no, it still did not work.


    Could that be because i have connected this time only one servo and not all the 4 in the diagram?

     

    The servo was moving occasionally, just very small movements, but that could also be only because of unconstant voltage from the LiPo battery.

     

    I tried to chage all the values in the code, which are tenths of microseconds to thousands of microseconds, in oredr to find out if the servo movements are random or originate from my pressing on the smartphone screen - but the servo did not start moving for longer periods.

     

    Do you have any idea, how should i try to tackle the problem this time?

     

    Thanks,

    Roi.

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Cancel
  • ntewinkel
    ntewinkel over 12 years ago in reply to roineust

    Hi Roi,

     

    Try adding some Serial.println statements to the robot sketch to display debug information on the Serial monitor to show that the robot is actually receiving the commands.

    And/or instead of moving servos, turn on an LED for a second or so when a command is received. You could have one LED per servo or per command, for example.

     

    I still haven't checked out that robot you pointed out... I really should try that out image

     

    Cheers,

    -Nico

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
Reply
  • ntewinkel
    ntewinkel over 12 years ago in reply to roineust

    Hi Roi,

     

    Try adding some Serial.println statements to the robot sketch to display debug information on the Serial monitor to show that the robot is actually receiving the commands.

    And/or instead of moving servos, turn on an LED for a second or so when a command is received. You could have one LED per servo or per command, for example.

     

    I still haven't checked out that robot you pointed out... I really should try that out image

     

    Cheers,

    -Nico

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
Children
No Data
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube