Show Posts
Pages: 1 ... 11 12 [13] 14 15 ... 119
181  Using Arduino / LEDs and Multiplexing / Re: Doubt about the LCD Keypas Shield on: July 28, 2014, 07:17:07 pm
Hi kevinmr1999.

I have the same shield, can recognize it by the spelling of the word "rigth", which isn't right...
Have a closer look at the right bottom and top of that picture.
You can see that all 6 of the power pins on the bottom, and 5 of the 6 analog input pins have another hole next to it.
Analog 0 is used by the shield itself (to read the keys), so that became unavailable for other uses.

On top you can see that there are some digital pins too that have holes next to it, but be aware that these are not 1:1 to the holes next to it.
Your shield is using digital pins 8, 9, 4, 5, 6, 7 (in that order), and 10 t control the backlight.
Regarding backlight control, read this (click !) as that applies to this shield.
The 7 pins that are not in use by the shield are available, counted from right to left (as the pins on your Arduino are too).

You can solder headers "pins" or wires to those holes and then use them for whatever needs you might have.
So you've still got 12 pins available.
182  Community / Website and Forum / Re: Random oddity after forum webpage is reloaded. on: July 28, 2014, 07:02:52 pm
That has been discussed already.
It is a known problem that seems to be session related.

The keyword here is "token", look for that in recent posts of this forum.

I'm not sure this is something the staff here can solve in any other way than updating the forum software, but that is quite some work and requires downtime for the forum (i would guess an entire day), after which unavoidable more bugs will pop up..
So even if there would be a known solution for this, applying it will take good consideration, planning and time.
183  International / Nederlands / Re: sensor schakelt niet goed on: July 28, 2014, 06:55:01 pm
Hoi Johnny.

Ik begrijp dat het niet altijd meevalt, zeker niet als je even snel een antwoord geeft.
Maar om een goed idee te geven van jouw installatie zodat je een passend antwoord kunt krijgen, is het wel belangrijk dat je de juiste informatie geeft.
Zie het berichtje van Jantje hierboven.
In jouw laatste bericht spreek je jezelf tegen.
Ik begrijp wel wat je bedoelt, maar ik moest het wel 2 keer lezen.

De GND is het referentie nivo bij systemen zoals de Arduino.
Daarom moet je een meting altijd doen ten opzichte van dat nivo.
Dan zie je namelijk het zelfde als wat de Arduino ziet en ook naar zit te kijken.
Van een multimeter gaat dan dus de zwarte draad (meestal met het bijschrift "com") naar GND, en dan kun je zien wat er gebeurt op je schakel uitgang van je sensor met de rode draad.
Ik had al het vermoeden dat je zo meet zoals je hierboven vertelde, omdat je aangaf een negatieve spanning te meten, terwijl die er niet kan zijn.
Je zou nu kunnen denken dat de "plus" ook een vast gegeven is en je dat daarom ook prima kunt gebruiken, maar er zijn een heleboel redenen waardoor die plus zou kunnen afwijken (stroomverbruik is daar een heel bekende van).
184  Using Arduino / Displays / Re: connect act2004a lcd to uno on: July 28, 2014, 04:07:51 pm
Google reveals this picture:

It tells you some stuff you need to compare to floresta's tip, but it looks to be very standard to me.
Only thing that's missing is whether you need to use a resistor for the back light, and what voltage is expected there.
185  International / Nederlands / Re: sensor schakelt niet goed on: July 28, 2014, 03:41:26 pm
Hoi comteccie.

Hoe is die sensor aangesloten en hoe meet je ?
Je hebt genoemd dat de sensor een plus, min en een geschakelde uitgang hebt.
Je hebt ook genoemd dat je de uitgang op een ingang met pull up hebt aangesloten.
Die laatste is een signaal van 0 volt of 5 volt.
Hoe word het geheel gevoed ?
Is dat uit dezelfde 5 volt als de Arduino ?
Als het niet hetzelfde is, zijn de GND's (de nul volts) met elkaar verbonden ?
Is het ├╝berhaupt wel een 5 volt voeding voor de sensor ?

Ik vraag dat omdat je het hebt over een negatief nivo maar niets hebt genoemd dat duidt op een negatieve spanning.
(wat je er niet instopt, kan er hier ook niet uitkomen).
Het kan natuurlijk zijn dat je de meter anders aan zou moeten sluiten, vandaar dat ik daar ook naar vroeg.
Dus waar zet je de meetpennen op ?
186  Using Arduino / Programming Questions / Re: What to do next? on: July 26, 2014, 04:51:32 pm
You are using pin 0 as potPin.
Pin 0 is serial receive on Uno and Leonardo.
You should only use this one (and pin 1) if you really know what you're doing, or else you might be in for surprises.
Next, you are setting up a serial connection.
So you are in for surprises.

Then, after setting that up, you're going to do an analog read on the serial connection, which isn't able to do that.
You'll get a 0 or a 1, depending on what you're sending over serial..

Now it appears to be time to do an update to the display (1), as that's what happens if the just obtained value was below 21, and we know it was.

There will never be an update (2), (3),(4) or whatever.

You are never ever reading pin 10, called button.

This sketch is very busy doing nothing at all.
It certainly doesn't do what you seem to be expecting from it.

By the way, it is very well possible to to what you want, using just 1 button.
You'll have to work out some tricks to get that done.
187  Using Arduino / General Electronics / Re: Where to find pluggable 2.54mm terminal blocks? on: July 26, 2014, 03:30:17 pm
Something like this (click !) ?
188  Using Arduino / Motors, Mechanics, and Power / Re: PWM for stepper motor on: July 26, 2014, 12:55:18 pm
Your motor does not care about RPM.
It is constructed to step, not to rotate at a certain speed.
In order to have it make steps fast enough, you need to control it correctly and the steps taken results in some RPM value reached.
You can't usually immediately go from zero to the max speed, you'd need to ramp up the speed.
If you want to display the RPM, you either need to calculate it, or measure it.
Measuring it means additional hardware, and additional code, and so a lot more work and hassle.
Depending on your application, you could create some fixed point, that can be sensed once every rotation.
After that you can calculate (there it is again..) the RPM.

As you can see, more work and more stuff to learn from.
But in the end it comes down to the same thing.
Except, as stated before,  that calculating tells you how fast it should run, and measuring tells you how fast it is running.
189  Using Arduino / Displays / Re: 16x2 goes blank after few hours. on: July 26, 2014, 12:44:26 pm
It does make sense to me to put the sensor handling in a function.
Perhaps it is indeed a good idea to first read all values, then process it, and after that display their values.
Displaying of the values seems to be a lower priority to me.
190  Using Arduino / Motors, Mechanics, and Power / Re: PWM for stepper motor on: July 26, 2014, 12:26:05 pm
You need to do the math.
For this you need to know the number of steps your motor needs for one cycle, or how large a single step is (this comes down to the same thing).
After that you can calculate the RPM.

A microsecond is a millionth of a second, and there are 60 seconds in a minute.
You should be able to do the math.

Just to be sure:
This is the desired RPM you'll be displaying, there are circumstances that will prevent from reaching that speed.
But this has nothing to do with your question.
191  Using Arduino / Displays / Re: 16x2 goes blank after few hours. on: July 26, 2014, 12:11:55 pm
You should connect the capacitors to the same GND as that from the Arduino.
At this moment it is very unclear to me how you have the GNDs connected, because this was brought up several times, with different answers.
Check how the GNDs are connected.
If a board has any connection to your Arduino, it should have a GND connection too.

The relay board should have a connection from COM of the board, to GND of your Arduino.
The jumper should not connect position 7 and 8, park it just at position 8.

You are controlling when something is written to the display, the display isn't supposed to try to do anything you didn't tell it to do.
The Arduino isn't capable of multitasking (but you can get pretty close).
It is very likely that once you put out a request to a sensor, you'll have to wait for the answer (or a timeout).
But i don't know that for a fact.
You are handling error messages from the DHT sensor, but that doesn't seem to include communication errors.
192  International / Nederlands / Re: Vertraging maar geen gewone delay. on: July 26, 2014, 10:19:57 am
Dat verklaart een en ander in de andere thread.
Ik zat daar al te turen naar hoe je de timer daar afhandelt, deze uitleg maakt het wat duidelijker.
193  Using Arduino / Displays / Re: 16x2 goes blank after few hours. on: July 26, 2014, 10:11:35 am
I'll have a closer look at your sketch later.
I see a 2 second delay in there, which is a huge amount of valuable time.
But that only is executed if time is below or at 00:00:00.
Because you seem to somehow keep track of time, i don't understand the delays in there, but i think this has very little to do with the problem.

Putting capacitors in parallel will increase the capacity, allowing for larger or longer pulses to be filtered.
But i doubt that will really help in this case.
You told about the capacitors being connected to the control pins of the relay board, and to the ground of the Arduino.
Are they connected this way, or are they connected to the GND of the relay board ?
Try to keep those wires as short as possible.
I see no large capacitor on the relay board.
Perhaps using a 10 or 100 uF electrolytic capacitor (elco) over the 5 volt power supply of the relay board will help too, but as you are powering it from another source, this should not be of consequence.

I have been using a Chinese clone of that LCD keypad shield, running for over a year now, doing different sketches.
It gets a reboot every time i start the PC, or an instance of the Arduino IDE on that PC , but that means it keeps running for days without trouble (usually i don't switch off my PCs).
Hasn't ever shown similar behavior, so i guess that shield isn't the culprit.
194  Using Arduino / Displays / Re: 16x2 goes blank after few hours. on: July 26, 2014, 07:55:28 am

I didn't see that while scrolling back to your first post, think you can't see attachments when in editor mode of this forum.
I took a peek at your code.
I can see you are a practiced coder, the code looks good and can be read easily because you have used good indentation.
Seems to me you are way ahead of me in coding.

I do have a few concerns about the code, though.
First is you are using delays while in the main loop or in a function smiley-eek
Please don't do that.

Second is that you seem to write to the display in every iteration.
This is a bit hard to see, because of the extended menu's you have built.
But i didn't see you checking for new values before writing to the display.
If i'm building a menu, i'm not writing to the LCD if there is nothing new to write.
Writing to a LCD seems to be a relatively slow process.
You can beat that by checking whether there is anything new to write instead of what's already presented at the current display.
Still if a value has changed, you don't have to rewrite the entire display, just that value needs to be updated.

I can't say that that is what's the problem we're looking to solve, but i think  it would clean up the code a bit.
195  Using Arduino / Displays / Re: 16x2 goes blank after few hours. on: July 26, 2014, 05:59:01 am
A crash after some 36 hours while several switches have occurred, indicates an additional problem.
You now need to look for indications that could point to the Arduino instead of the display.
In case the Arduino ceases, suspect a memory leak/overflow.
Posting the code could help finding that.
Pages: 1 ... 11 12 [13] 14 15 ... 119