Show Posts
Pages: [1]
1  Using Arduino / Programming Questions / Re: Sending multiple variables from processing to arduino on: December 22, 2011, 05:27:27 pm
Do you have a better example?
that would be great!

peace guys,
johannes.
2  Using Arduino / Programming Questions / Re: Sending multiple variables from processing to arduino on: December 22, 2011, 08:19:37 am
does anyone have a working example?

something like this?

http://anthonymattox.com/serial-communication-sending-variables-to-the-arduino
3  Using Arduino / Programming Questions / Re: Sending multiple variables from processing to arduino on: December 21, 2011, 05:27:56 pm
Dear Paul,
thank you for your code but i cant accept that it is so complicated to send two changing numbers from processing to arduino.

isn´t there an example for the processing  and the arduino code where you see, a and b in processing, and then a and b in arduino.

I refuse to believe that there isn´t a less complicated solution.

I still think there is this, one line code in processing and one line code in arduino.

please help me,
johannes.
4  Using Arduino / Programming Questions / Re: Sending multiple variables from processing to arduino on: December 21, 2011, 05:56:01 am
Dear Paul,
thank you a lot.
I´m going to look at the code the whole day, till i´m completely into it.
When i got it and it is working im going to tell you.

thank you a lot again,
Johannes
5  Using Arduino / Programming Questions / Re: Sending multiple variables from processing to arduino on: December 21, 2011, 05:31:05 am
hey paul,
thank you for your answers.

1. The variables a and b are numbers between 0 and 180 that are constantly changing.

3. if i send them in a specified order, (a,b,a,b....)which could look like (121,9,109,40....)
    and i read the serial monitor with arduino, how do i say: ok the first one is a, the second one is b, the third one is a etc. ...?
   (on the arduino side)



Isnt there a safer method, because if there appears a mistake (like missing one number), perhaps a b becomes an a or is it unnecessary?

cheers,
johannes
6  Using Arduino / Programming Questions / Sending multiple variables from processing to arduino on: December 20, 2011, 04:53:32 pm
Hey guys,
after searching the internet for about 3 days, i have enough courage to ask.

I´m looking for a piece of code that does this:

I have 2 variables in processing, a and b.

and i want them to be sent through the serial port to the arduino.
Here i want to have again the same variables. a and b.

Sending one variable is quite easy, but how is it done with more then one?

How am i able to say, hey this is the value of variable a and this for variable b.(like marking them)

It would be the biggest Christmas present for me fixing this problem.

Thank you very much,
Johannes
7  Using Arduino / Project Guidance / NOOB QUESTION// Arduino Pro Mini - single button. on: March 22, 2011, 11:48:41 am
hi folks,
ive been searching for hours and cant find any help for connecting a simple button to the arduino pro mini.

its powerd through battery at the raw pin, and i´ve uploaded the "button" example that comes with the arduino software.

but i dont know how to wire it up.

the problem is that i dont know, from which pin i can get the 3.3 volt to send it through the button and the 10k resistor into the digital read pin.

please help me,
im getting so diddling frustrated because its so damed nooby.

greetz,
johannes.
8  Using Arduino / Storage / Re: TIME-RLATED BUTTONS- saving digital input to EEPROM on: March 21, 2011, 09:19:05 am
look.
i´ve built these things here,( they are from blinking bouncing balls)



into a tonfa



if you hit with the tonfa onto something,
the spring bends and makes a contact with the metal thing around her.

its like a button, that reacts to kinetic energy.
there are more then one "button" built into the tonfa to find out how hard the tonfa was used.
i used the button example code, to light up corresponding led´s, this worked fine.
it would be also cool to know WHEN, WHICH  "button" was used.




so the first single question, how do i store digital input to eeprom?
if i have for example 3 buttons, how do i store the signal of these buttons in the eeprom.

next question would be,
can i do it time-related?

greez,
johannes.
9  Using Arduino / Storage / TIME-RLATED BUTTONS- saving digital input to EEPROM on: March 21, 2011, 07:54:19 am
hi folks,
i have a standalone arduino mini pro running and 5 buttons plugged to the digital inputs.
im searching for sotware, that writes into the eeprom when a button has been pressed. its possible to press
multiple buttons at the same moment.

afterward i want to plug it into my pc and find out when which button has been pressed.

it would be so cool i somebody has any idea.

cheers,
johannes.


10  Using Arduino / Project Guidance / Re: tonfa, police stick measuring hits and impact on: February 24, 2011, 07:35:43 am
venger thank you for your advice,
this high g accelerometer is quite nice. but i cant find one with two axis.
i will try to put everything as close to the handle as possible, that´s for sure.

which kind of arduino should i use? ( wireless, usb)
and what should i use to power it up? ( which kind of battery, how to store the single batteries etc=
do i need a switch?

any idea about the code?

thank you all,
johannes
11  Using Arduino / Project Guidance / Re: tonfa, police stick measuring hits and impact on: February 23, 2011, 07:30:53 am
Quote
Proof of shock on a stick proves nothing - he could have been banging on a riot shield to intimidate.

no doubt thats right,
but my goal is not to design some kind fo law-proof device.

2010 have been a lot of demonstration in germany and next to my already mentioned concept i had the idea that the  sensor-stick
could be  part of a game for policemen in demonstrations. For every hit they get a point, they travel from demonstration to demonstration and can upload their rankings to the internet. there are then awards like " most hits in one battle", " overall winner" etc.

the concept is two sided, and the aim is to design a prototype,
an artistic gadget for an extreme enviroment,
that draws attention on the topic




i struggle with the realisation and i would be realy thankful if you could help me here,
even if you have only one or two answers to my questions, write them down, please,

see you later,
johannes
12  Using Arduino / Project Guidance / Re: tonfa, police stick measuring hits and impact on: February 22, 2011, 09:10:57 am
does anybody have any ideas or solutions.
i can´t wait to drill a hole into this thing  smiley
13  Using Arduino / Project Guidance / tonfa, police stick measuring hits and impact on: February 21, 2011, 12:26:27 pm
hi everybody,

I want to  build a tonfa, police stick that counts how hard and how often somebody used it.
The idea is that,  if a policeman uses his gun he has to justify it, but if he hits somebody with his tonfa nobody can prove it.

As sensors i want to use these little things.


This mechanism is used in cheap bouncing balls, that start blinking if they hit a wall hard enough.
(if the kinetic force is strong enough the feder in the middle bends over and closes a circuit).


The tonfa has a diameter of 3 cm,
and ist 56 cm long.




my questions are:

Are there better impact sensors or should i use a high-g accelerometer?
How many g´s, like g-force units measures a hit?
I have a few doubts about my "sensors" that i use at the moment, the differences between the impact forces should be
detected through the different placing along the stick.
the sensor nearest to the hand only closes when the impact is realy strong.(leverage)

Which arduino would you recommend me to use? ( power, wireless, usb, size,nano, mini, pro series?)
i have to put the batteries into the stick, and there must be a communication with the computer.
either wireless or through usb.

If i want to use a switch, where should i place it and which one should i use?
Or is it able that the arduino turns himself on/off ? (sleep mode)

The sensor data ( which are at the moment digital, simple closed or not closed ) must be  stored on the arduino. (eeprom)
Perhaps somebody has a piece of code that he thinks would help me, like counting and storing multiple button signals on the arduino.

Should time play a role? ( like, when has he hit, the i have to do something like time related counting)

Code for visualizing my sensor data?

Some piece of hardware that you would recommend me?
Completey different solution?

Well if somebody has any idea, solution or answer please post it.
Im thankful for every answer.

Sincerely
johannes



Pages: [1]