So here is my revised fueling calculator for hybrids.
Seems to work just fine for me - tested at 1X on various chambers of different sizes and it works at first click as shown here
[youtube][/youtube]
I fixed some bugs that existed in the previous version and added an experimental bluetooth remote ignition fuctionality.
This bluetooth ignition thingy is technically just something that you can use to connect to a bluetooth module like this one
and it sends a string 'boom' once you release the safety and press the button 'fire'.
Of course you need to write a code for an arduino board (or any other microcontroller you want to use) so that it activates a relay/mosfet/whatever when its serial pin gets the string sent by the app
I say it's experimental because I only tested it on a bluetooth dongle since I don't have such a bluetooth module yet.
ohh and just as a disclaimer - you use at your own risk.
Tap Menu.
Tap Settings.
Tap Applications.
Check the box labeled Unknown Sources.
Any feedback or ideas what to add are welcome.
ohh and special thx to jsr for the formula
Posted: Mon Nov 26, 2012 5:57 pm
by Zeus
Very nice work PS, simple, and takes all the maths out of it.
When can we see a manometric fuel calculator?
I'm obviously being a shithead, just to see if the noobs bite.
Posted: Mon Nov 26, 2012 6:16 pm
by POLAND_SPUD
Zeus wrote:
When can we see a manometric fuel calculator?
well I can add more gasses if anyone is interested - same goes for manometric. All I need is accurate formula.
Posted: Mon Nov 26, 2012 6:22 pm
by Zeus
Might want to highlight my post. The option of oxygen would be nice too, but not essential.
And I couldn't crash the app at all, and crashing qpps is my hobby. No compatibility problems with an SGS 2.
Posted: Mon Nov 26, 2012 6:50 pm
by POLAND_SPUD
Zeus wrote:Might want to highlight my post. The option of oxygen would be nice too, but not essential.
And I couldn't crash the app at all, and crashing qpps is my hobby. No compatibility problems with an SGS 2.
Seen that before
I could probably add that too - and so could anyone...
might want to check app inventor yourself -> http://appinventor.mit.edu/
or watch this video to get the idea
It IS simple to use... surely it has its limits but for simple apps it's ideal - adding stuff such as text to speech or speech to text is just a matter of a couple of clicks
Posted: Mon Nov 26, 2012 7:00 pm
by Zeus
Very interesting, I'll look into that further. The block building system looks so easy.
Since you've got the option for Wi-fi and bluetooth, I see no reason why a bluetooth controlled hybrid couldn't be made. SB's one touch metering can be replaced with a 5/3 solenoid valve, propane tank, and air compressor. Literally one touch metering and firing.
Posted: Fri Dec 14, 2012 10:54 am
by POLAND_SPUD
Update
Got my module and it works
...and so does my app
[youtube][/youtube]
arduino code is here
really simple and it's just a slightly modified version of example code for arduino (PhysicalPixel)
arduino board waits till it receives character 'b' through serial and it then switches pin12 high, waits for 1000ms, and switches it LOW again
/*for use with my fueling app... for more details visit spudfiles.com
Based on PhysicalPixel from examples - modified by POLAND_SPUD */
const int Pin12 = 12;
int incoming; // a variable to read incoming serial data into
void setup() {
// initialize serial communication:
Serial.begin(19200);
// initialize pin12 as an output:
pinMode(Pin12, OUTPUT);
}
void loop() {
// see if there's incoming serial data:
if (Serial.available() > 0) {
// read the oldest byte in the serial buffer:
incoming = Serial.read();
// if it's a 'b', turn on PIN12:
if (incoming == 'b') {
digitalWrite(Pin12, HIGH);delay(1000);digitalWrite(Pin12, LOW);
}
}
}
EDIT
fixed some retarded stuff in the the code - ohh don't worry it used to work just fine but I named one of the variables 'incomingString' when working with it and obviously that wasn't a string at all - in other words cosmetic change
EDIT no2
here is a diagram of the circuit (notice that there is a decoupling cap I had to add after I notice that the arduino freezed a couple of times due to high EMF from the ignitor)
EDIT no3
Realized that the original code and schematic had a serious design flaw - arduino bootloader flashes the LED on the board on power up - since the LED is connected to PIN13 it meant that the circuit would switch the relay for a fraction of second on power up.
Fixed both the schematic and the code - now it's PIN12
Posted: Fri Dec 14, 2012 11:07 am
by wyz2285
Oh that´s so cool
I can finaly make a shot with a "phone call"
Posted: Fri Dec 14, 2012 11:13 am
by pneumaticcannons
Awesome.
I love the big red "FIRE" screen
Posted: Fri Dec 14, 2012 2:07 pm
by POLAND_SPUD
I might add other features like a siren sound or something like that when the safety is off - no problem
anyway I attached the circuit to the relay so that all of you could see that it really really works (ULN 2004 is used to drive the relay)
[youtube][/youtube]sorry for the mess, but.. uhmm you know I am lazy...
Posted: Tue Dec 18, 2012 1:58 pm
by jackssmirkingrevenge
Hadn't seen this!
After all those years of procrastination, finally a step closer towards that hybrid! Great stuff
I can see this going very wrong though.
*ringski ringski*
"Cześć?"
*BOOOOOOOOM*
"Przejebane..."
Posted: Tue Dec 18, 2012 2:45 pm
by POLAND_SPUD
jackssmirkingrevenge wrote:Hadn't seen this!
I can see this going very wrong though.
*ringski ringski*
"Cześć?"
*BOOOOOOOOM*
"Przejebane..."
lol translation fail
That can't happen
Though I've just realised there is a serious design flaw -> On arduino boards the LED and PIN 13 flashes on power up...
so in other words - once you power it up and you've got the ignitor connected to the battery the gun will fire
I already changed the code and schematic
Posted: Tue Dec 18, 2012 3:52 pm
by dewey-1
I think you should add a "safety" interlock switch in series with your switched ignition power also.