CEMETECH
Leading The Way To The Future
Login [Register]
Username:
Password:
Autologin:

Don't have an account? Register now to chat, post, use our tools, and much more.
Latest Headlines
Online Users
There are 97 users online: 3 members, 74 guests and 20 bots.
Members: critor, legodude.
Bots: Baidu (1), Spinn3r (1), Magpie Crawler (3), VoilaBot (1), Googlebot (14).
RSS & Social Media
SAX
You must log in to view the SAX chat widget
Author Message
happybobjr


Member


Joined: 11 Jun 2010
Posts: 100

Posted: 11 Jun 2010 07:52:49 pm    Post subject: shake detection

ok so i have been making basic programs in ti-basic and axe
then i googled around and saw that about 7 years ago there was a project that was started and for the most part failed. the project was the wireless ir link.

well i had made an etch-e-sketch program in axe and also in basic and i had a thought started. what if i could make it where if i shake my calculator it could clear the screen!
then it would truly be an etch-e-sketch
i don't think it would be terribly difficult, just have 2 sets of metal connectors. if you shake it slightly it will have only one set touch and have nothing done. if you shake it harder both sets will touch the corresponding piece and thus send a command or signal to the calculator.

any and all help would be loved as i have no idea how to pull this off. also this will be a great learning experience

i have also posted this on omnimaga

Ti-84 plus silver edition
OS: 2.53 MP
Axe: 0.2.6
letter on back: M (for things like ti-boy se) ( can't use )
Back to top
foamy3


Official Cemetech Fuel Transfer Engineer

Joined: 14 Dec 2005
Posts: 2190
Location: PA

Posted: 11 Jun 2010 10:06:01 pm    Post subject:

Pshh, who uses calculators anymore? Just make it an iPhone app and put your clear function in motionsEnded. The iPhone sdk is a piece of cake. Then just go ahead and write an 84+ emulator while you're at it.

Edit: Ooh, sorry bob. I didn't see you were new here. I'm just being a troll. Don't mind me.
_________________





Last edited by foamy3 on 11 Jun 2010 10:08:30 pm; edited 1 time in total
Back to top
happybobjr


Member


Joined: 11 Jun 2010
Posts: 100

Posted: 11 Jun 2010 10:08:15 pm    Post subject:

hahaah and while your at it, try to make a friend

edit: sorry for being rude but it was kind of mean of you. also i have problems with apple. I always got terrible service from them.

and i can afford android, ipad or whatever, i just don't care for them


Last edited by happybobjr on 12 Jun 2010 12:05:48 pm; edited 2 times in total
Back to top
Kllrnohj


/=\ PH34R |\/|3


Joined: 24 May 2005
Posts: 8189

Posted: 11 Jun 2010 10:08:41 pm    Post subject:

foamy3 wrote:
Pshh, who uses calculators anymore? Just make it an iPhone app and put your clear function in motionsEnded. The iPhone sdk is a piece of cake. Then just go ahead and write an 84+ emulator while you're at it.


Psh, who uses iPhones? Make it for a real platform like Android. The Android SDK is a piece of cake.

Anyway, for what you want to do you'd need to use assembly. A simply accelerometer would be pretty easy to hook up I suspect, no need to build your own.
_________________
There are only two kinds of programming languages: those people always bitch about and those nobody uses. (Bjarne Stroustrup)
Back to top
foamy3


Official Cemetech Fuel Transfer Engineer

Joined: 14 Dec 2005
Posts: 2190
Location: PA

Posted: 11 Jun 2010 10:10:21 pm    Post subject:

Dag yo, too slow on the edit. Oh, well. I guess I'll go back to /b/ where I fit in.

Edit: @kllrnohj: anyone who thinks people will mod their calc for an etch a sketch program is too young to afford a smart phone. He's much more likely to have an iPod touch than a droid.
_________________



Back to top
comicIDIOT


Guru


Joined: 01 May 2006
Posts: 5105
Location: SFBA, California

Posted: 12 Jun 2010 02:08:37 am    Post subject:

I believe he's talking about detecting motion and using that motion to simulate shake with the IR Link, which would be pretty impossible I believe.
_________________


-Alex
Back to top
swivelgames


Transient Squash


Joined: 27 Sep 2005
Posts: 2345
Location: On the planet called Earth

Posted: 12 Jun 2010 02:51:12 am    Post subject:

I think he was just referencing the IR link project for kicks. Anyway, it's a pretty simple concept, but I'm not sure where you would rig the accelerometer.
Back to top
KermMartian


Site Admin


Joined: 14 Mar 2005
Posts: 55733
Location: Earth, Sol, Milky Way

Posted: 12 Jun 2010 08:50:43 am    Post subject:

So here's what I said when he emailed me:

me wrote:
James,
That is an awesome idea! This would be pretty easy to pull off
with a 1- or 2-axis accelerometer with an analog output. With a simple
thresholding circuit (or two) you could pull down one or both I/O
lines when the force of shaking exceeded one or two levels.

Sincerely,
Christopher


So in other words, I was thinking that with an analog accelerometer (ie, one not producing an I2C output or something) it would be easy to pull down one or both calculator I/O lines when shaking occurred. Each line could indicate one of two axes, or two different thresholds could be used so you'd need to shake harder for the second. Based on the description, one axis and one threshold would be sufficient. Interfacing would be as easy as an ASM program to set a BASIC variable to 0 when both lines were high, and 1 or 2 or 3 when they went 01, 10, and 11 respectively. (To those who are confused by my use of pull low with logical 1, the calculator has active-low data lines).
_________________


Back to top
WhiteValkery


Power User


Joined: 07 Oct 2008
Posts: 493
Location: US

Posted: 12 Jun 2010 09:37:26 am    Post subject:

hmm... this is good...
good to see people having new ideas Smile

personally though... i am still trying to find a way to open mine... -.-'
haha
_________________
deseased....

oops.. i mean...

he left XD
Back to top
KermMartian


Site Admin


Joined: 14 Mar 2005
Posts: 55733
Location: Earth, Sol, Milky Way

Posted: 12 Jun 2010 09:47:12 am    Post subject:

schoolhacker wrote:
hmm... this is good...
good to see people having new ideas Smile
Indeed. Speaking of accelerometers, something like this is what you want, although this is a way-overkill 3-axis device:

http://www.sparkfun.com/commerce/product_info.php?products_id=252

schoolhacker wrote:
personally though... i am still trying to find a way to open mine... -.-'
haha
Open your calculator? All you need is to remove six Torx-6 screws and one phillips screw (the one holding the backup battery in, which is also structural). You then gently shear the two halves to open the side latches, while also pressing the top front to open the top latch.
_________________


Back to top
WhiteValkery


Power User


Joined: 07 Oct 2008
Posts: 493
Location: US

Posted: 12 Jun 2010 10:17:02 am    Post subject:

KermMartian wrote:
schoolhacker wrote:
hmm... this is good...
good to see people having new ideas Smile
Indeed. Speaking of accelerometers, something like this is what you want, although this is a way-overkill 3-axis device:

http://www.sparkfun.com/commerce/product_info.php?products_id=252

schoolhacker wrote:
personally though... i am still trying to find a way to open mine... -.-'
haha
Open your calculator? All you need is to remove six Torx-6 screws and one phillips screw (the one holding the backup battery in, which is also structural). You then gently shear the two halves to open the side latches, while also pressing the top front to open the top latch.

yeah... the problem is, i can't find such a screw driver 0x5
_________________
deseased....

oops.. i mean...

he left XD
Back to top
KermMartian


Site Admin


Joined: 14 Mar 2005
Posts: 55733
Location: Earth, Sol, Milky Way

Posted: 12 Jun 2010 10:25:09 am    Post subject:

The internets have lots of Torx-6 screwdrivers. Are you near any big chain stores that might have them, like Sears or something?
_________________


Back to top
WhiteValkery


Power User


Joined: 07 Oct 2008
Posts: 493
Location: US

Posted: 12 Jun 2010 10:42:29 am    Post subject:

KermMartian wrote:
The internets have lots of Torx-6 screwdrivers. Are you near any big chain stores that might have them, like Sears or something?

hmm... i see... cool thanks!
i think i will get one next time i go there
_________________
deseased....

oops.. i mean...

he left XD
Back to top
happybobjr


Member


Joined: 11 Jun 2010
Posts: 100

Posted: 12 Jun 2010 12:03:09 pm    Post subject:

would there be any down sides to buying a triple axis Accelerometer compared to a single axis Accelerometer.
it looks like the 3 is cheaper.

i am not pressed for money but i would hate to buy something then find out it isn't what i need.
would this one be good?
http://www.sparkfun.com/commerce/product_info.php?products_id=9652
or is this one better?
http://www.sparkfun.com/commerce/product_info.php?products_id=9332

i have never attempted anything like this before.


next. how could i have my calculator determine if it is being shaken? what kind of output from the accelerometer give my calculator.

would i need another battery for the Accelerometer, or would it leech off my calculator's?

how would i connect my 2.5 mm jack to the Accelerometer.

thanks.
Back to top
KermMartian


Site Admin


Joined: 14 Mar 2005
Posts: 55733
Location: Earth, Sol, Milky Way

Posted: 12 Jun 2010 12:03:19 pm    Post subject:

So Happy Bob, besides the accelerometer method, you could also do this with a simple spring-type motion detector. The basic concept is a spring acting as one terminal, with a metal pin in the center of the spring that acts at the second terminal. The bottoms of the spring and the pin are fixed, while the tops are free to move. When you shake it, the spring flexes but the pin stays fixed. If you shake it enough, the spring touches the pin, completing the circuit (and pulling the line low). Since I'm the one with the Masters in Electrical Engineering and you probably don't have access to the same surface mount soldering equipment as me that you might need for the accelerometer solution, this spring/pin method might be much easier.

Here's an example of a similar method, except it uses a copper ring near the free end of the spring instead of a center pin.


Edit: so, would you like me to answer your questions about the accelerometer, or go for the spring method? For the accelerometer, you would indeed an external power supply, either 3.3v or 5v, and you would need to also build the thresholding circuit, which takes a transistor and a handful of resistors.
_________________


Back to top
happybobjr


Member


Joined: 11 Jun 2010
Posts: 100

Posted: 12 Jun 2010 12:10:25 pm    Post subject:

i do have a soldering iron. it is not a $300 oone but it is rather good.

i think i will go with spring method. then in my prog. i will have it say,
If 'when signal received' : pxl-off ( randint (1,95) , randint (1,65) )

would i just need a

spring ( don't own )
solder and iron ( own )
mettel pin. ( Idk )
ripped 2.5 mm jack ( own )
wire. (own )

also would i need a battery or would the calculator supply the power?
if i do need a battery, what should i have to prevent to much power going into the i/o


Last edited by happybobjr on 12 Jun 2010 12:14:38 pm; edited 1 time in total
Back to top
KermMartian


Site Admin


Joined: 14 Mar 2005
Posts: 55733
Location: Earth, Sol, Milky Way

Posted: 12 Jun 2010 12:13:02 pm    Post subject:

So if you do the spring method, you don't need an external power supply. You just connect the pin in the spring-pin device to the ground of the I/O port, and the spring to either the tip or the ring. Because all you're doing is shorting a data line to ground to pull it low and making the calculator see a logical 1 on that line, you don't need to worry about sourcing too much current from or sinking too much current to the calculator.
_________________


Back to top
happybobjr


Member


Joined: 11 Jun 2010
Posts: 100

Posted: 12 Jun 2010 12:16:33 pm    Post subject:

awesome man i might have this done today?

also what will i need
just the
spring
pin
hot glue gun and glue
solder and iron
wire and 2.5 mm jack?


Edit: ok i am starting to make it.


Last edited by happybobjr on 12 Jun 2010 12:54:58 pm; edited 1 time in total
Back to top
KermMartian


Site Admin


Joined: 14 Mar 2005
Posts: 55733
Location: Earth, Sol, Milky Way

Posted: 12 Jun 2010 12:54:18 pm    Post subject:

Hold on a second, I'll make you a diagram for you to copy, I'll be about an hour. Yes, that's all you need.
_________________


Back to top
happybobjr


Member


Joined: 11 Jun 2010
Posts: 100

Posted: 12 Jun 2010 12:55:23 pm    Post subject:

i got the jack taken apart
got the hot glue gun and glue
solder and iron
spring
wire
pin

ok i'm good to go.
Back to top
Display posts from previous:   
Register to Join the Conversation
Have your own thoughts to add to this or any other topic? Want to ask a question, offer a suggestion, share your own programs and projects, upload a file to the file archives, get help with calculator and computer programming, or simply chat with like-minded coders and tech and calculator enthusiasts via the site-wide AJAX SAX widget? Registration for a free Cemetech account only takes a minute.

» Go to Registration page
    » Goto page 1, 2, 3, 4, 5  Next
» View previous topic :: View next topic  
Page 1 of 5 » All times are GMT - 5 Hours

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

© Copyright 2000-2013 Cemetech & Kerm Martian :: Page Execution Time: 0.037402 seconds.