Recent Posts

Pages: 1 ... 8 9 [10]
General Electronics / Re: Accelerometer question and...
Last post by firashelou - Nov 29, 2015, 10:48 pm
That is the popular MPU-6050 sensor. Google "arduino mpu-6050" for lots of project examples and applications. Agreed, it won't work as a speedometer.
jremington, i checked your suggestion then i looked closer on the module i have, it is different, the name written with silkscreen on the module board is GY-85 and the one written on the package is : 412 ARDUINO 9DOF SENSOR MODULE, and by checking it's components, mine has 2 big chips, 1 medium and like the mpu6050 which has 1 big chip and different pin names so what do you think ?
or it can be programmed the same way as the mpu6050 ?

and for what application can an accelerometer be used exactly if not to measure speed ?! :|
Programming Questions / Re: Storing text file program...
Last post by Delta_G - Nov 29, 2015, 10:47 pm
I've been using Eclipse to handle my own programming for Arduino lately.  I also use GIT as a version control system.  Most of my big projects have a header that just defines one #define called GIT_HASH that I set to the GIT hash of the current version.  Then somewhere at the beginning of my code it either prints that to serial or there is some back-door button sequence that will display it on an LCD or something.  For example my aquarium doser, if you hold the select button down while the program starts, it will display it to the LCD until you release the button. 

I went a step further and wrote a little batch script that whenever I compile my code it runs before the compile and gets the current GIT hash and alters that header file to have the right hash code.  That way I don't have to remember to change it. 

With GIT, I always have every version of every program I've written without needing to save a bunch of different versions.  I can always go back to any version I've ever had before.  It's a bitch to learn to use, but with Eclipse it's all built in and sort-of a little bit more user friendly.

Within the IDE it wouldn't be hard to do that by hand.  I don't know if you can have the IDE run a batch file before compiling or not.  If you're the kind of person that likes to keep different versions in different files, there is a __FILE__ macro that has the name of the file that was compiled.  You can print that at the beginning of the program and it will tell you what file you were using that day. 
Arduino Zero / Re: struggling to get millis()...
Last post by mantoui - Nov 29, 2015, 10:46 pm
change SerialUSB.print(pinLog[pinLogPos]);  to

Code: [Select]
General Electronics / Re: Soldering problems with le...
Last post by brokenAvocado - Nov 29, 2015, 10:46 pm
But while we're at it, does anyone know what to do for very flimsy and thin wires if it comes to stripping them? I can't seem to make a 'good' connection with these wires from the servo. The link to the servo: Also, I do know these things have female connectors, but I want to strip and solder the separate wires for the wires to have a strong connection.
Project Guidance / Re: Making a Lockbox which cou...
Last post by jremington - Nov 29, 2015, 10:45 pm
A padlock with a code wheel is another possibility. You need only send a number!
Project Guidance / Re: 2 Electromotors circuit
Last post by DuaneDegn - Nov 29, 2015, 10:45 pm
Don't have arduino here yet:(, I've oreded it last week so I don't have code to show :)
The Arduino IDE includes a lot of examples. Make sure you work through the examples about using buttons. These should help.

You'll want to use a variable to keep track of button presses.

You'll find people more willing to help if you've tried to write the code yourself first. As Delta_G and I mentioned earlier, if you get stuck and need help, post your code and there will be plenty of people willing to help.
Programming Questions / Re: um, ok.. about these error...
Last post by insignia - Nov 29, 2015, 10:43 pm
what i come up with is this..

Code: [Select]

void loop() {

buttonState = digitalRead(trigger); {

if (buttonState == HIGH) {
} else {

but we have the following right away right after.. i'm confused as how this should go then.. gotta finish 1 thing before you go to the next if statement no? yeah, this is gonna be a long 3hrs before i go to bed... good thing i got beer for this!

Code: [Select]

  if (triggerpresses == bullet) {

too many if statements i think.. just confusing.. :/
General Electronics / Re: Accelerometer question and...
Last post by firashelou - Nov 29, 2015, 10:42 pm
In theory the first integral of acceleration is speed so it should work.

In practice an accelerometer makes a really really really shitty speedometer because it relies on already knowing the speed at the outset and any errors get magnified the longer you go. 

Magnetometer measures magnetic fields.  I'm guessing it is there to use as a compass.

What do you want to measure the speed of?  A GPS module is often handy if you can't use some sort of wheel sensor to measure rotations or something.
it's an RC car that i am trying to make a speedometer for it

about the math behind the speed from acceleration well i know how to do that, but in practice you do not suggest I use accelerometer to find the speed of the car ?
Project Guidance / Re: Making a Lockbox which cou...
Last post by rytcd - Nov 29, 2015, 10:42 pm
Buy a padlock.  Use it to secure the box.  You take the key.  Your friend takes the locked box.

There are a plethora of choices available to unlock the box.  You travel with the key to your friend.  Your friend travels with the locked box to you.  You both travel to an agreed upon location.  You mail the key to your friend.  Your friend mails the locked box to you.  You both mail your respective component to a third party.  You make a copy of the key which you mail.  You email a picture of the key which your friend uses to construct their own key.  Etcetera.

It's part of a game. Whoever has the box should not be able to open it. Rather, the other person should be able to remotely on demand whilst being in another state.
Project Guidance / ATmega328p, Ram, Mhz(speed), s...
Last post by Domino60 - Nov 29, 2015, 10:41 pm
Hi all,

So I've been searching for atmega328 details..etc months and months ago and I opened a topic
here as well about I2C so I'm a bit familiar but I'd like to know from more experienced people more
and more in deep details bit to bit about the atemga328 because I have a project and need to
know exactly with what I'm working and what's the possibilities and abilities of the chip.

Atmega328 :
Flash: 32kb
RAM: 2kb
ROM: 1kb

Voltage 1.8-5.5v
(there is more but i wrote the basic details)

So I'm planing to build a board with several chips interacting with each other but as example let's take just 3 chips, why 3 and not 2? because with 3 there is more possible ways to transfer data. Few things that I don't know but I know from actual computers is RAM ram is used to store temporary data, the data which you send/receive or process in the (OLED, liquid display, serial as out or input).

2kb = 2.000bytes = 16.000bits (1 byte = 8bits).
As we know from ASCII table we store each character in a array of 8 bits which makes one character
= 1 byte. At this point we can read/write 2kb, 2k characters per second?  

Example: We got 3x 328p chips connected thru I2C, 1st chip send a 500byte array of characters, the 2nd one 1000byte of characters and the 3rd one 1000 byte array of characters.
1st one send to -> 3rd
2nd send to ->1st     and
3rd send to ->1st

We got a 500bytes going out of the 1st chip and at the same time 2000byte coming at the chip,
as we know there is 2kb RAM, so the chip will "crash"?
at my point of view I think it will.

About the speed Mhz

So we got 16Mhz 16.000Hz, or 16.000 times per second, mostly know as 16.000 cycles per second.
How exactly can someone understand the processing times per second and bytes/bits ?
16.000 that means is a 16byte/bit processor?
and what's the actual difference between Mhz and bit?

The main point of this topic is to understand and use practically the chip with the right coding and
saving storage adding more and more getting even the last drop of juce. To make a compact coding
with full storage and working almost at the edge of the bits

Pages: 1 ... 8 9 [10]

Please enter a valid email to subscribe

Confirm your email address

We need to confirm your email address.
To complete the subscription, please click the link in the email we just sent you.

Thank you for subscribing!

via Egeo 16
Torino, 10131