Go to Post The game is leaking? That can only mean... - GeeTwo [more]
Home
Go Back   Chief Delphi > Technical > Technical Discussion
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
 
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 22-04-2014, 20:23
Canon reeves Canon reeves is offline
Registered User
FRC #4490
Team Role: Alumni
 
Join Date: Jan 2014
Rookie Year: 2013
Location: Arkansas
Posts: 298
Canon reeves has much to be proud ofCanon reeves has much to be proud ofCanon reeves has much to be proud ofCanon reeves has much to be proud ofCanon reeves has much to be proud ofCanon reeves has much to be proud ofCanon reeves has much to be proud ofCanon reeves has much to be proud ofCanon reeves has much to be proud of
Best way to Control a Servo via Smartphone?

I'm working on a project that requires me to be able to turn a key through a smart phone, this key only has an on and off position, and no start like a vehicle would. What I came up with was a servo facing the key that turns it, the real question I have is whether or not an Arduino is the proper tool for the job or not. I already looked into using a BlueTooth module on the Arduino but it doesn't have the range that I am looking for. What would be the easiest, and best system to control it? And if you can think of any other way to turn said key that doesn't involve pneumatics that would be great! Thank you!
  #2   Spotlight this post!  
Unread 22-04-2014, 21:31
Bryce Paputa's Avatar
Bryce Paputa Bryce Paputa is offline
FF TSL: Frog Farce
FRC #0503 (Frog Force)
Team Role: Alumni
 
Join Date: Jan 2012
Rookie Year: 2008
Location: Novi Michigan
Posts: 454
Bryce Paputa has a reputation beyond reputeBryce Paputa has a reputation beyond reputeBryce Paputa has a reputation beyond reputeBryce Paputa has a reputation beyond reputeBryce Paputa has a reputation beyond reputeBryce Paputa has a reputation beyond reputeBryce Paputa has a reputation beyond reputeBryce Paputa has a reputation beyond reputeBryce Paputa has a reputation beyond reputeBryce Paputa has a reputation beyond reputeBryce Paputa has a reputation beyond repute
Re: Best way to Control a Servo via Smartphone?

I don't know how much force you need, but i would guess that the standard FRC servos are too weak. ServoCity has some much stronger ones, but you'd need to test how much force you need. I would either use a raspberry pi or an arduino with an ethernet shield and do it over wi-fi.
  #3   Spotlight this post!  
Unread 22-04-2014, 21:36
dtengineering's Avatar
dtengineering dtengineering is offline
Teaching Teachers to Teach Tech
AKA: Jason Brett
no team (British Columbia FRC teams)
Team Role: Mentor
 
Join Date: Jan 2005
Rookie Year: 2004
Location: Vancouver, BC
Posts: 1,826
dtengineering has a reputation beyond reputedtengineering has a reputation beyond reputedtengineering has a reputation beyond reputedtengineering has a reputation beyond reputedtengineering has a reputation beyond reputedtengineering has a reputation beyond reputedtengineering has a reputation beyond reputedtengineering has a reputation beyond reputedtengineering has a reputation beyond reputedtengineering has a reputation beyond reputedtengineering has a reputation beyond repute
Re: Best way to Control a Servo via Smartphone?

The servo sounds like a fine actuator. You can also get linear servos. Otherwise a solenoid might do the trick for you, or perhaps a small motor like a VEX motor geared down with a belt drive....

As for the electronics, I just plug one of these http://www.dx.com/p/jy-mcu-arduino-b...9#.U1cW3lfIZ-k into my Arduino and it works great... the range varies depending on walls and wall thickness, but can reach up to 30m when talking to my Galaxy SIII.

Note that as the Bluetooth Dongle uses a serial port protocol that it won't work with iOS. It might work after a jailbreak, but Apple doesn't seem to think that their users would ever want to do anything remotely technical.

If you want greater range than that, then I'd suggest a Raspberry Pi (or BeagleBone) and running a webserver on the Pi. Read the MagPi magazine, or google up different ways to use your Pi to control things "webiopi" is a good starting place... I had mine set up and turning LEDs on and off while streaming video to me from anywhere with an internet connection. Hopefully that will satisfy the range requirements!

Good luck. Sounds like a cool project. One of my students just got his lock mechanism working this weekend using RFID tags as keys, with an LCD display, and a bluetooth control to open the lock from his phone when he is on the couch. It was a pretty impressive set up... I think he's going to put together an instructable on it one day.

Jason

P.S. As far as "easiest" or "best" system for controlling it... Arduinos are more than powerful enough (even powerful enough to run a simple web server). I only suggest the Pi because a Pi+wifi dongle is less expensive than an arduino+wifi shield. There are many other great microcontrollers... the PIC comes to mind... but the Arduino platform has become a broad enough standard that you are likely to get assistance and ideas more readily with the Arduino. I'd say the Pi also has the edge over the BeagleBone in that regard, too.

Last edited by dtengineering : 22-04-2014 at 21:41.
  #4   Spotlight this post!  
Unread 23-04-2014, 08:57
Canon reeves Canon reeves is offline
Registered User
FRC #4490
Team Role: Alumni
 
Join Date: Jan 2014
Rookie Year: 2013
Location: Arkansas
Posts: 298
Canon reeves has much to be proud ofCanon reeves has much to be proud ofCanon reeves has much to be proud ofCanon reeves has much to be proud ofCanon reeves has much to be proud ofCanon reeves has much to be proud ofCanon reeves has much to be proud ofCanon reeves has much to be proud ofCanon reeves has much to be proud of
Re: Best way to Control a Servo via Smartphone?

So how hard is the programming on the Rasberry Pi? Would it be simple enough for me to learn within a few days? Would I be able to tell a servo how far to turn in the code? Thanks for the replies! With this we are not as worried about the cost as we are about the effectiveness. We want to make sure it works well every time. Also, does arduino have a good app programming interface? So that we could connect it to an app? and does anyone know of a good sensor for detecting vibration? And does the arduino shell shield work better for long range smartphones than the raspberry pi? Thanks!

Last edited by Canon reeves : 23-04-2014 at 09:17.
  #5   Spotlight this post!  
Unread 23-04-2014, 09:59
Canon reeves Canon reeves is offline
Registered User
FRC #4490
Team Role: Alumni
 
Join Date: Jan 2014
Rookie Year: 2013
Location: Arkansas
Posts: 298
Canon reeves has much to be proud ofCanon reeves has much to be proud ofCanon reeves has much to be proud ofCanon reeves has much to be proud ofCanon reeves has much to be proud ofCanon reeves has much to be proud ofCanon reeves has much to be proud ofCanon reeves has much to be proud ofCanon reeves has much to be proud of
Re: Best way to Control a Servo via Smartphone?

What is needed to control a servo by an arduino uno? What breadboard do I buy if all I want is to power a cell shield and a servo?
  #6   Spotlight this post!  
Unread 24-04-2014, 12:16
Whippet's Avatar
Whippet Whippet is offline
MIT Class of 2020
AKA: Luis Trueba
FRC #4301 (New Tech Narcissists)
Team Role: Alumni
 
Join Date: Feb 2011
Rookie Year: 2011
Location: Cambridge, MA
Posts: 1,186
Whippet has a reputation beyond reputeWhippet has a reputation beyond reputeWhippet has a reputation beyond reputeWhippet has a reputation beyond reputeWhippet has a reputation beyond reputeWhippet has a reputation beyond reputeWhippet has a reputation beyond reputeWhippet has a reputation beyond reputeWhippet has a reputation beyond reputeWhippet has a reputation beyond reputeWhippet has a reputation beyond repute
Send a message via Yahoo to Whippet
Re: Best way to Control a Servo via Smartphone?

Quote:
Originally Posted by Canon reeves View Post
What is needed to control a servo by an arduino uno? What breadboard do I buy if all I want is to power a cell shield and a servo?
You don't even really need a breadboard. You just need to hookup the +5V pin to the positive wire of the servo cable, the GND pin to the negative wire on the servo cable, and the signal wire to your chosen pin on the Arduino (Labelled ~ on the board).

EDIT: You'll also want to import the "Servo" Library in your code.
__________________
2010: FRC 3043, Build Assistant
2011: FRC 3043, Head of Minibot subteam; FLL 12762, Team Captain
2012: FRC 3043, Electrical; FLL 12762, Team Captain; FTC 5670, Team Captain
2013: FRC 4301, Electrical, Team Co-Captain
2014: FRC 4301, Electrical/Programming, Team Co-Captain
2015: FRC 4301, Electrical/Programming, Team Captain
2016: FRC 4301, Chief Technical Officer; FTC 10860, 10861, and 11004: Mentor. Winner, Hub City Regional (3310 & 4063)
Closed Thread


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 09:38.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi