Show Posts
Pages: [1] 2 3 ... 105
1  General Category / General Discussion / Re: How to split an incoming serial into int on: Today at 01:47:15 pm
Hi and welcome.

Is this some school project ?

First of all, you need more information.
Is the data a constant stream of data, or do you get a new line too ?
If you get a new line, are all lines of the same length ?
That means are there a fixed number of fields, delimited by a comma ?
Do you need to process all fields, or are you just interested in certain fields ?

These are some things you need to ask yourself.

Further, you need to know that you are receiving characters, ASCII values.
You need to convert these to some variables, which is the core of your question.
The comma's are a great help while doing this.
2  General Category / General Discussion / Re: Using Arduino as "plug and play" device on: Today at 10:33:01 am
Hi and welcome.

What you ask is very unlikely to be possible.
The reason for that is that you need some software for this, and there aren't that much OS'es that have this built in already.
So you need some software to be installed for this.

I've seen devices that install their own software.
To do this, they are identified as a memory stick, and after that has been installed, it will install the driver and other needed software.
After this installation, the device will be recognised as the correct device, and the software can be used.
That software doesn't change the Device ID and Vendor ID (these are what is sent to the OS so it can recognise the device) aren't changed, because when the device is plugged in for the first time in another machine, it will install the software again.

It may very well be possible to create all this using an Arduino.
But you need to understand USB protocols very well, and change the bootloader on your Arduino.
You also need to add a piece of memory (a SD card could do the trick) to your Arduino, and write the drivers and software for all platforms (widows in different tastes, mac, android, i don't know) you wish to support.
3  International / Nederlands / Re: keypad on: Today at 10:16:15 am
Sowieso moet je er altijd van uit gaan dat je zelf een fout hebt gemaakt.
Dan kun je ook na 3 keer controleren uitsluiten dat dat zo is.

Je moet er ook rekening mee houden dat je je eigen fouten maar moeilijk kunt herkennen.
Dat komt omdat je nou eenmaal een bepaalde werkwijze hebt, en die zal waarschijnlijk niet veranderen als je op zoek gaat naar die fout.
Daarom is het dan een goed idee om er eens iemand anders naar te laten kijken.
4  Using Arduino / Displays / Re: 16x2 goes blank after few hours. on: Today at 10:09:46 am
That's not clear to me.
Not wired AND no jumper.
Does that mean that there is only 1 single wire to each optocoupler ?

The jumper should indeed be open.
But there should be a circuit, meaning that both wires to the optocoupler should be used in order to complete that circuit.
I can't see how else the LED inside the optocoupler could be lit else.

A capacitor forms a barrier to DC signals, but is a short to pulses.
That way it can do its filter function which you are using at the moment.
5  International / Nederlands / Re: keypad on: Today at 08:48:03 am
De eerste foutmelding in het zwarte gedeelte moet je ook het eerst oplossen.
Dat is deze fout:
D:\Documenten\Arduino\libraries\Keypad/Keypad.h:36:25 error: utility/Key.h: No such file or directory

Er is dus iets fout gegaan bij het installeren van de library, omdat Key.h (en / of diens map) niet gevonden kan worden.
6  General Category / General Discussion / Re: How to begin? on: Today at 05:37:00 am
Any starter kit would do.
You should have asked before, because you would have saved some money (at least for shipping) by ordering a kit that includes an Uno.

To give the best answer, the best question has to be asked.
What are your goals with Arduino ?
7  Community / Website and Forum / Re: Moderation Guidelines && Applications for Moderators on: July 22, 2014, 05:23:39 pm
Wrong section, wrong thread.

You don't.

You can change the thread title adding "[solved]" (or "[opgelost]" in your case) to it.
8  Using Arduino / Displays / Re: 40 pin extension cable on: July 22, 2014, 05:06:56 pm
My remark was made in relation to the display.
You told about a display to be placed to the wall, and the need of a 40 wire cable, not much else.
Thus my conclusion that you need that 40 wire cable for that display.
Such cable in relation to a display excludes a 1602 like display (way too much wires than needed).
I've seen some tft screens that do use a similar cable, so that was what i thought of.
I've also seen multiple problems popping up because people used these displays with a bunch of single wires, which were shorter than the length you are planning to use.

In short: if this 40 wire cable isn't meant to be used for the display, then forget my first post here.
9  Using Arduino / General Electronics / Re: 110V detection on: July 22, 2014, 02:57:56 pm
Use an optocoupler to see power is there or not.
It will not tell you anything about the consumption, but you will know the state of the switch.
As it will probably be an AC power supply, the result of the optocoupler will be a "flashing" signal.
That can be used.
Big advantage of such optocoupler is that it is galvanic isolated and so safe to use.
10  Using Arduino / Displays / Re: 40 pin extension cable on: July 22, 2014, 02:49:17 pm
Hi and welcome.

I can't answer your question.
But it seems you are assuming  that it will still work after extending the connection from 0.0 cm to 121.9 cm .
That is quite an assumption.
So let me warn you that you might be in for a surprise.
You might want to test that before you commit to it.
11  Using Arduino / Displays / Re: LCD doesn't display any characters on: July 22, 2014, 12:10:56 pm
OK, no problem, we'll let it rest now.

Important is that you need to be meticulous when coding.
It is good to ask if you understood it right in case of any doubt.
So don't let this keep you from asking another (maybe similar) question.
The only dumb question is that, that was never asked.
12  Using Arduino / Displays / Re: LCD doesn't display any characters on: July 22, 2014, 11:23:41 am
Where did you get that information from ?
So we know to stay away as far as possible from that.

Good to see you booked some progress, and will be able to go on now.
13  International / Nederlands / Re: LCD scherm met IIC module on: July 22, 2014, 07:45:45 am
Welke versie van de IDE heb je ?
Als dat de laatste versie is (1.0.5), dan kun je daarin libraries importeren.
Dat doe je dan door te klikken op Sketch - Import Library te klikken (of Sketch - Bibliotheek Importeren voor NL versie).
Verder is die map die je hebt laten zien, een map in "mijn documenten".
Dat is niet de juiste plaats (ik weet ook niet waarom die map bij installatie word aangemaakt).
Je moet 'm in de installatiemap zetten.
Hier staat ie (win 7 home pro 64bits) in C:\Program Files (x86)\Arduino\libraries
Vermoedelijk ga jij die map op een vergelijkbare plaats terugvinden.
14  Using Arduino / Displays / Re: LCD doesn't display any characters on: July 22, 2014, 06:27:28 am
Hi and welcome.

Let me start with the backlight issue.
You should reduce the current to a backlight LED, not the voltage.
If you reduce the current, the voltage will follow, but not the other way around.
To reduce the current you could use a resistor.
Lots of displays have such resistor built in, but by far not all of them.
So find out about that for your display.

In case really nothing happens, assume you need to adjust the contrast potentiometer.
You should see some contrast where the characters should appear.
You can set the contrast already when the module only gets power (and is not controlled in any way).
In that case you should see all blocks in the first line, and none in the second.
After doing that you can go and try to get some characters on your LCD.

The module has an excellent manual, telling how to build it, but also how it is connected to the LCD.
It is in German, so if someone doesn't understand that that would be a problem.
I'm assuming you understand the German language.
On top of page 4, a schematic shows this connection.
This has to be the same as in your declaration of the screen in this line:

LiquidCrystal_I2C lcd(0x20, 2, 1, 0, 4, 5, 6, 7, 3, POSITIVE);

I didn't bother to check that , but you should.
15  International / Nederlands / Re: LCD scherm met IIC module on: July 22, 2014, 06:02:22 am
Hoi driesdep, welkom.

Quote from: driesdep

Ik heb namelijk de nodige libraries aan arduino toegevoegd,
maar, nog steeds heeft de compiler een hele reeks aan problemen ....

Om een libary te verkrijgen, ga ik naar deze google code site,
Ik copy de code, en plak het in de notebook.
(Ik geef hem de juiste naam, en plaats hem in libraries van Arduino);
Dit zou het toch moeten doen ?
Of niet ??

Niet dus.
Aangezien je niet hebt vermeld dat je in libraries een nieuwe map hebt gemaakt met dezelfde naam als de library die je aanroept, moet ik aannemen dat je dat niet gedaan hebt.
Daar word naar gezocht en als dat niet word gevonden gaat het dus niet goed en krijg je deze foutmeldingen.
Elke library moet dus in zijn eigen map staan, niet in de hoofdmap genaamd 'libraries' .
Pages: [1] 2 3 ... 105