Program request (ramdom vibrator ps3 )

Selfbondage software and other kinky developments

Moderators: Riddle, Shannon SteelSlave

Post Reply
sabrina123
*
Posts: 3
Joined: 20 Jul 2013, 02:27

Program request (ramdom vibrator ps3 )

Post by sabrina123 »

Hey ,
i want to ask if theres a program that makes your ps3 controller vibrate randomly ( ex: 1 min on , 3 min off, ...) when its plugged into the usb from my computer.
i can make the controller vibrate constantly , but thats not teasing enough. i know theres "satisfyme" but it doesnt seem to work for me ...
sabrina :)
User avatar
Sir Cumference
Moderator
Posts: 1608
Joined: 29 Jan 2012, 22:00
Location: Scandinavia

Re: Program request (ramdom vibrator ps3 )

Post by Sir Cumference »

Play with an Arduino and a bullet vibrator instead.

(Learning a bit of programming will be good for you)*

The basic "blink" sketch with a slight modification will do it for you.
Then you hook the bullet vibe up to a MOSFET (where the lamp is in the picture), a diode to protect it and a pull down resistor to make sure it behaves, and you are buzzing!
Arduino mosfet anything.jpg
Arduino mosfet anything.jpg (20.61 KiB) Viewed 3828 times
Notice that the output is pin 3 in the picture and pin 13 in the two first bits of code (called "sketches" when it is an Arduino). Do not get confused!
Just stick the wires where you have told it to output the signal.


http://arduino.cc/en/Tutorial/blink
Will turn on and off in 1 second intervals:

Code: Select all

/*
  Blink
  Turns on an LED on for one second, then off for one second, repeatedly.
 
  This example code is in the public domain.
 */
 
// Pin 13 has an LED connected on most Arduino boards.
// give it a name:
int led = 13;

// the setup routine runs once when you press reset:
void setup() {                
  // initialize the digital pin as an output.
  pinMode(led, OUTPUT);    
}

// the loop routine runs over and over again forever:
void loop() {
  digitalWrite(led, HIGH);   // turn the LED on (HIGH is the voltage level)
  delay(1000);               // wait for a second
  digitalWrite(led, LOW);    // turn the LED off by making the voltage LOW
  delay(1000);               // wait for a second
}
You wanted one minute on and three off?

Code: Select all

/*
  Blink
  Turns on an LED on for one minute then off for three minutes, repeatedly.
 
  This example code is in the public domain.
 */
 
// Pin 13 has an LED connected on most Arduino boards.
// give it a name:
int led = 13;

// the setup routine runs once when you press reset:
void setup() {                
  // initialize the digital pin as an output.
  pinMode(led, OUTPUT);    
}

// the loop routine runs over and over again forever:
void loop() {
  digitalWrite(led, HIGH);   // turn the LED on (HIGH is the voltage level)
  delay(60000);               // wait for a MINUTE
  digitalWrite(led, LOW);    // turn the LED off by making the voltage LOW
  delay(180000);               // wait for a 3 MINUTES
}

But there is a problem!
Right now, it gives you full power from the battery pack .
It is probably too much with 3V to the bullet? (You'll get off in 20 seconds... and suffer the rest of the time!)

So we move the output to pin 3, and pulse width modulate (PWM) the output to turn it down. Now you can adjust the value of the number we call "power" to just the strength you want:

Code: Select all

/*
  Naughty Blink
  Turns on an LED on for one minute, then off for three minutes, repeatedly.
Set "power" as you like.

 */
 
// Pin 3 can do PWM
// give it a name:
int led = 3;  // Changed!
int power = 117; // a value between 0 (off) and 255 (full speed ahead)

// the setup routine runs once when you press reset:
void setup() {                
  // initialize the digital pin as an output.
  pinMode(led, OUTPUT);    
}

// the loop routine runs over and over again forever:
void loop() {
  analogWrite(led, power);   // turn the LED on with the value of "power" defined above
  delay(60000);               // wait for a minute
  digitalWrite(led, LOW);    // turn the LED off by making the voltage LOW
  delay(180000);               // wait for three minutes
}

And you can keep building on it!
*Programming is probably one of the most pervertable skills you can acquire!

And then comes the real fun.
Set it up to do random intensity and intervals? Take input from other sensors and let these inputs decide what the vibrator does?

And you can go on:
http://forum.boundanna.net/board/viewto ... =28&t=7135
(I've expanded it that controller a bit since the post... I really should make a write up of it. It can be controlled with a TV remote now 8) )
~ Leatherworking, blacksmithing , woodworking and programming are the most pervertable skills you can learn! ~
User avatar
qwerty212
Moderator
Posts: 1064
Joined: 23 Mar 2010, 20:24

Re: Program request (ramdom vibrator ps3 )

Post by qwerty212 »

@Sir Cumference, I always learn reading you. I really enjoy your posts. Is something similar like when I read Pijoy's posts. Thanks for the Arduino .pde

sabrina123 wrote:Hey ,
i want to ask if theres a program that makes your ps3 controller vibrate randomly ( ex: 1 min on , 3 min off, ...) when its plugged into the usb from my computer.
i can make the controller vibrate constantly , but thats not teasing enough. i know theres "satisfyme" but it doesnt seem to work for me ...
sabrina :)
What os are you using? could you please post what driver are you using? Do you have a configuration tool to test that the control pad works propertly?
Image

do you want to use any other program with this computer? (If not I can code to you a program that just presses the button that makes the pad vibrate, but it needs to be on screen)

Greets from Barcelona
User avatar
Sir Cumference
Moderator
Posts: 1608
Joined: 29 Jan 2012, 22:00
Location: Scandinavia

Re: Program request (ramdom vibrator ps3 )

Post by Sir Cumference »

qwerty212 wrote:@Sir Cumference, I always learn reading you. I really enjoy your posts. Is something similar like when I read Pijoy's posts. Thanks for the Arduino .PDE

Thanks, I'm very flattered to hear that from you.
:love:
Compared to the programming you do, still think I do it with a hammer and a shovel, rather than with an elegant quill.
(I hope you were not sarcastic?)


To be honest, I'm quite a bit outside my normal field of work when playing with microcontrollers, but I work hard on learning. The rewards are so..... Satisfying :!:
~ Leatherworking, blacksmithing , woodworking and programming are the most pervertable skills you can learn! ~
Post Reply