Show Posts
Pages: [1] 2 3 ... 9
1  Using Arduino / Displays / KS0108 and openGLCD : code crashes/stalls on: February 06, 2014, 09:05:09 am
Hi all,

I'm facing a problem which i can't get rid of : my code randomly crashed/stalls due to the KS0108 LCD i plugged on.

Even when i try the GLCD Diagnostics of the openGLCD library, it can't even pass the 1 phase.
And when it stalls, if i press reset, i can see this message on the serial port :
"GLCD initialization Failed: BUSY wait Timeout (status code: 1)"

I double-checked my wiring.
I don't know why i'm having this error/crashes/stalling problems ...


Thanks !
2  Using Arduino / Networking, Protocols, and Devices / Re: HTTP Server running with Ethernet library =] on: June 10, 2012, 10:58:57 am
Hi,

In fact, actually, the code eats 2400 bytes of RAM.
I'm clearly not a "PRO" developer for simplifying code and optimizing it.
I think it is possible to lower the RAM use with reusing some variables i'm using as buffers to temporarily cache the client request data lines and parse them.

I don't actually have time to comment the code, but soon, i will continue it and post it.


See you !
3  Using Arduino / Networking, Protocols, and Devices / Re: HTTP Server running with Ethernet library =] on: June 08, 2012, 11:55:57 am
I did not even notice the age of my post ...

Here are the news :
- Serves "files" directly from SD card
- Indicates ENCTYPE, MIME TYPE, FILESIZE, etc ... before sending files to client
- Parse any line coming from a client (and can do actions based on the values)
- Can parse GET and POST values being sent by the client
- Support BASIC authentication
- Support HTTP status codes (not all, but at least, the useful ones)
- Support "Default document" to open first (if client types http://<IP> of HTTP SERVER)
- Can plug/unplug/replug SD card at any time (without having to reset to whole system for the SD card to be accessible again)
- Bandwidth on file upload is approx. 5kB/s
- ... more to come  smiley-twist

TO DO :
- Finalize doing actions when client validates a FORM
- Stabilize the whole system
- Stores website(s) configuration files directly on SD card (... not using FLASH as it gives me strange behavior sometimes)
- Stores some configuration data inside the configuration files that could define if the website(s) needs AUTH or anything else ...
- Enhance iPhone compatibility (perhaps Android, others mobiles platforms too)
- AFTER ALL : create a library of this HTTP SERVER ... would be cool not to have the whole sketch full of code smiley
- Yours suggestions ?

See you
4  Using Arduino / Networking, Protocols, and Devices / Re: ETHERNET library : using as SERVER - How to get remote client IP ? on: June 08, 2012, 11:41:41 am
There was discussion below on a method to get the remote IP.

http://arduino.cc/forum/index.php/topic,82416.msg619420.html#msg619420


Sorry i did not edit the topic subject ...

-> By the way, did you read the last message of this post ?  smiley-mr-green
5  Using Arduino / Networking, Protocols, and Devices / Re: ETHERNET library : using as SERVER - How to get remote client IP ? on: June 08, 2012, 09:35:18 am
Ok guys, i'm back with my project ...

I let time pass since i hadn't put my hands on the arduino IDE (last time was when the 1.0 was still in beta/RC) !

I adapted my code to run on the new IDE (new libraries like Ethernet, SD and SPI), by the way, it wasn't so hard to do.
I'm actually commenting the code to (eventually) release it here for everybody to improve it smiley


Let me some days and i hope i will be able to post it !


Bye !
6  Using Arduino / Programming Questions / Re: Libraries conflicting each other AND/OR conflicting with pins ... on: December 03, 2011, 11:06:23 am
As for string vs. String, you are free to look at the source code for the String class to see how it implements each function, and use the same underlying string function instead.

What would i gain if i use the same function then ?


I did not understood the whole part of the "timers" thing.
You're saying that adding a servo removes the ability to PWM some pins of the Arduino ... OK !
But what are those pins ?
Would i be able to use those pins as digital instead pf PWM ?
7  Using Arduino / Programming Questions / Re: Libraries conflicting each other AND/OR conflicting with pins ... on: December 03, 2011, 10:11:06 am
The libraries should all work at the same time.

Quote
i know i already had problems with the servo library which seems to be blocking ports 11/12/13 (don't know exactly)
The Ethernet card and SD card are SPI devices. SPI happens on pins 11, 12, and 13. The cards require different chip select pins - the Ethernet card uses pin 10 and the SD card defaults to pin 4.

The remaining pins are available for the LCD and the servo(s).

Quote
- String() // lenght ; startWith ; endsWith ; etc ...
You really shouldn't. People write amazing text manipulation applications for decades before that crappy class was developed to "hide the complexities of string processing". Learn "the complexities of string processing" and relegate that class to the bit bucket.

Yes i know that the "Ethernet && SD" shield is 2 SPIs devices.
As i'm using the Arduino MEGA 2560, the SPI pins are located on the Digital_PINs 50-51-52-53 ... by the way 53 has to be reserved and configured as an output for the SD slot to work correctly !
I remember having problems when i was working on 2 analog servos, i used some pins between 10 && 13 ... don't remember what was the right number ... i will try myself to be sure.


By the way, i found the String() library pretty easy to use.
As i don't want to program the whole thing for my strings, i will use the one provided into the IDE.
But if you have some great advices to give to me for replacing the String() function, i would rather say "let's go for it" !


Thanks !
8  Using Arduino / Programming Questions / Libraries conflicting each other AND/OR conflicting with pins ... on: December 03, 2011, 09:41:45 am
Hi all,

I would like to know if there are some counter-indications of using these libraries at the same time (in the same sketch) :
- servo
- glcd (ks0108 driver)
- ethernet
- sd (the one included in 0023 //OR in the new v1.0)

I will use these functions too :
- serial
- shiftOut
- String() // lenght ; startWith ; endsWith ; etc ...
- probably others ...


Thanks !


PS : i know i already had problems with the servo library which seems to be blocking ports 11/12/13 (don't know exactly)
9  Using Arduino / General Electronics / Re: TPIC6C595 : open drain problem ... on: December 03, 2011, 09:19:20 am
Ok, i was already aware of that flyback EMF diode.

But, why do you want to use a schottky ?
Doesn't a 1N400x would be sufficient for that application ?
I'm just driving relay coils !
10  Using Arduino / General Electronics / Re: TPIC6C595 : open drain problem ... on: December 03, 2011, 02:06:26 am
By the way, one last question would be :
As times tend to be reading some datasheet, i noticed that my motors are going to consume more than what i expected from them.
So i have to put relays between my motors and the TPIC6C595.

Do you have any idea about how to wire the relays ? (btw, they are +12V DC coils)
As i never worked with xFET devices (like the TPIC6C595), i was wondering if there was anything else to add to the circuit to protect the xFETs from fly-back/EMF/something else ?


Thanks !
11  Using Arduino / General Electronics / Re: TPIC6C595 : open drain problem ... on: December 03, 2011, 02:03:51 am
Now we're getting somewhere.

To make sure the outputs are OFF, you should:

a) connect a 10k pull-up resistor to the "G"-pin of the chip

If you want all outputs to be "active" (represent the data you shifted in), pull this pin LOW. If you need all outputs to be OFF, pull it HIGH.

b) use the "CLR"-pin to reset the chip to OFF whenever you need it.

Hehe !!!
You're the best !  smiley-mr-green
Now it works like it should !
I put a resistor between +5V and the IC_PIN_8 (G), then connected the IC_PIN_8 to a D_PIN of my arduino.
When the module starts, it nows puts +5V on the IC_PIN_8 (G) which puts all outputs to no drain.
Then in my arduino's setup, i have a byte sent which puts all outputs to OFF and release the G pin to LOW level.
After this, i never touch the G pin level anymore as it only deserves what i wanted to have : ALL OUTPUTS OFF AT START smiley


In fact, when i read the datasheet, i thought that the G pin was the solution, ...... but !
As i'm really not as good as i would like to be in electronics, here is where it droves me  smiley-red


Thank you for your precious help !
I greatly appreciate !
12  Using Arduino / General Electronics / Re: TPIC6C595 : open drain problem ... on: December 02, 2011, 10:23:38 am
Thanks for your explanations.
Anyway, they actually don't help because it seems sopmething is out of my understanding here.

I correctly wired ont TPIC6C595 which i can control finely.
Everything is working well except the fact that when i [POWER ON] my whole module, the outputs of the TPIC6C595 seems to be randomly LOW /OR/ HIGH ...

Sometimes, when i power on the whole module (arduino + tpic6c595 + led with resistance), the outputs of the tpic6c595 seems connected to GND as the LED turns ON.
But, from time to time, when i [POWER ON] the whole module, the LED doesn't turns OFF (which is the behavior i would like to have every time i POWER ON the whole module.
How can i achieve this behavior every time i power on the whole module ?
13  Using Arduino / General Electronics / Re: TPIC6C595 : open drain problem ... on: December 02, 2011, 09:25:58 am
Ok but, what if i want the outputs to be on a LOW state directly at start ?

Do i have to wire something differently ?
I can't seem to find something relating to this inside the datasheet.


If someone can helps.


PS : I will drive motors, so i just don't want the motors to move before i want, when i power on my whole module.
14  Using Arduino / General Electronics / TPIC6C595 : open drain problem ... on: December 02, 2011, 08:26:04 am
Hi all,

Because of the huge demands of outputs on a new project i'm on, i choose the TPIC6C595 for having directly power outputs available.
I can shiftOut correctly the data throught the DATA, CLOCK and LATCH pins but, there is something that bothers me : the fact that the IC powers on itself on a HIGH state on all its outputs.

Is there a way to avoid this and prefer the outputs to be powered-on on their LOW states ?




Thanks !
15  Using Arduino / Programming Questions / Re: maximum time spent in while loop ? on: November 25, 2011, 12:00:56 pm
I'll give it a shot ...
Pages: [1] 2 3 ... 9