Want simplest mC that can communicate with an Android device

Discussion in 'Embedded Systems and Microcontrollers' started by BtoomBoom, Mar 31, 2015.

  1. BtoomBoom

    Thread Starter New Member

    Mar 31, 2015
    5
    0
    Hello everyone.
    I want to control an L293 H-bridge via an Android device. I am looking for the simplest and cheapest micro controller that allows me to accomplish that via USB or Bluetooth.

    I am trying to create a robot that can be controlled remotely, thus the Android device needs to send just some simple signals for the robot to move.

    What is the best way to accomplish this? Which micro controller would be the most suitable?
     
  2. Papabravo

    Expert

    Feb 24, 2006
    10,140
    1,790
    Simple and what you want may not be a great fit. I think you need to refine your requirements so that we can choose from a couple of candidates rather than an ocean of possibilities. For example are we talking a single chip solution or is a multiple chip design OK. Are you going to make just one or will you be making a bunch of them. What kind of $$'s are you willing to spend. Some of the answers to these questions will involve some significant effort. Maybe someone has a pat answer and a finished design they want to share. If so I'll yield the floor.
     
  3. josip

    Member

    Mar 6, 2014
    63
    12
    I don't know which micro is most suitable, but any used as CDC device will be fine.
    Here is example for MSP430F550X entry level USB family slaa630 Android Applications With MSP430 USB on Mobile Devices
    http://www.ti.com/mcu/docs/litabsmu...eNumber=slaa630&docCategoryId=1&familyId=1615
     
  4. joeyd999

    AAC Fanatic!

    Jun 6, 2011
    2,678
    2,731
    If the Android device has and IR blaster, you could try that.
     
  5. upand_at_them

    Active Member

    May 15, 2010
    246
    29
    You can get cheap Bluetooth modules that have a serial interface for less than $5. Just about every microcontroller would be able to interface to it, take your pick.
     
  6. Papabravo

    Expert

    Feb 24, 2006
    10,140
    1,790
    That's why we need to know if a multichip or multimodule solution meets the TS/OPs requirements. Trying to meet an ambiguous specification is like pushing on a vertical rope.
     
  7. John P

    AAC Fanatic!

    Oct 14, 2008
    1,634
    224
    My question is--given some workable interface, can you program your Android system to do this?
     
  8. MaxHeadRoom

    Expert

    Jul 18, 2013
    10,539
    2,369
    I am wondering if the free Android Parrot Quadcopter app that operates on Wi-Fi, most likely 2.5Ghz would work with a normal RC 2.5Ghz receiver?
    You have at least 8 channel control.
    Max.
     
  9. sevenfold4

    Member

    Jan 12, 2015
    80
    7
    Maybe Raspberry Pi could satisfy your needs? Very easy to use, you could try both web interface or via Bluetooth. Bluetooth works for any MCU that has uart too tho. Older RPis are pretty cheap.
     
  10. BtoomBoom

    Thread Starter New Member

    Mar 31, 2015
    5
    0
    I am actually trying to create a product which can be mass produced, so putting a Raspberry Pi might not be feasible.

    Can I use a microntroller as small as an ATTiny along with a bluetooth to UART module, such as hm 11, to interface with the android device?
     
  11. Papabravo

    Expert

    Feb 24, 2006
    10,140
    1,790
    I don't see why not. If the ATTiny should run out of pins, RAM, or FLASH you can easily upgrade to an ATMega. Which ATTiny did you have in mind?
     
  12. BtoomBoom

    Thread Starter New Member

    Mar 31, 2015
    5
    0
    I am a noob to practical electronics so I don't know which one would be best suitable. What do you recommend?

    The project requires only four pins to interface with the L293 H-bridge. The program will be quite small as well, since all it has to do is to output a 4 digit truth table on those pins, based upon data from the Android device.

    Is HM 11 the best BT module for the project?
     
  13. Papabravo

    Expert

    Feb 24, 2006
    10,140
    1,790
    I've never used a Bluetooth module so I can't say. I have used lots of Atmel processors and I find they are capable, reliable, and have excellent datasheets. They are easy to program and debug with the available tools. They do tend to require somewhat more codespace than other processors so don't be afraid to have some to spare.
     
  14. upand_at_them

    Active Member

    May 15, 2010
    246
    29
    Since you're asking for suggestions I'll assume you've never use a microcontroller. In which case, you should probably use something easy like a PICAXE.

    There are plenty of places online to get a HC-05 or HC-06 Bluetooth module. If you just need one-way communication get whichever is cheapest. The HC-05 can be master or slave, whereas the HC-06 can only be slave.
     
Loading...