Show Posts
Pages: [1] 2 3
1  Using Arduino / Displays / Re: Is anybody using the ElecFreaks TFT shield V2.2? on: February 25, 2014, 05:48:38 pm
Ok cool, I really appreciate the response. Hopefully we can figure something out, I've read about other attempts online at bending the backlight pin 90 degrees outward so that it can be individually operated, but hopefully it doesn't come down to that. As for the safety of the backlight, I believe it operates at 3.3V, and the shield uses the 3.3V pin on the Arduino. The ElecFreaks wiki for the LCD screen states the following (in very broken english): "TFT01 is work at 3.3v DC, if you need to connect the module with the 5v voltage I/O , you need to add the 30k and 20k resistors to reduce voltage." So as long as the shield is utilizing the 3.3V then I think we're in the clear.

Speaking of utilizing the voltages, does anybody know how to tap into the Arduino's voltage/ground pins once the shield is in place?
2  Using Arduino / Displays / Is anybody using the ElecFreaks TFT shield V2.2? on: February 25, 2014, 08:17:46 am
I finally broke down and purchased the shield for my Sainsmart 3.2" LCD screen after trying to wire it entirely with individual wires, which produced very poor results including inverse colors, weird lines, sd card slot didn't work and it didn't properly clear the screen. Now with the shield it works perfectly (with my MEGA 2560) and even the SD card works. My project I'm using it for is automating an aquarium as much as possible, which requires the Arduino to be running constantly (for the lights) but I don't necessarily want the screen to be on constantly. So I've been researching various options and most people seemed to be referencing a trimmer pot on the shield, which I didn't have. I have the ElecFreaks Mega Shield V2.2, which has a serious lack of information, ElecFreaks only has info for V1.2 and V2.0. So I did more research on the shields and found the following information:

LCD shield V1.0, trimmer pot circled

LCD shield V2.0, chip circled

The chip circled in the V2.0 is the same one on my V2.2 and by using a microscope it says AMS1117  3.3H327PE. Research on this chip yields the following information:

"AMS1117 series of adjustable and fixed voltage regulators are designed to provide 1A output current and to operate down to 1V input-to-output differential. The dropout voltage of the device is guaranteed maximum 1.3V at maximum output current, decreasing at lower load currents. On-chip trimming adjusts the reference voltage to 1.5%."

Which leads me to believe that the LCD (I imagine only the backlight) can be adjusted via the arduino instead of previous attempts for the V1.0 (which I found online) of removing the trimmer pot and using a transistor.

Does anyone have any experience with this particular shield (or even V2.0)?

3  Using Arduino / Project Guidance / Re: Reading CSV values from an SD Card on: January 26, 2013, 11:23:39 am
Reading csv values from an external file...I feel like I'm back in my Computational Methods class
4  Using Arduino / Displays / Strange Lines on Bitmap on: January 01, 2013, 11:10:29 pm
Hello everybody,

Currently working on my 3.2" TFT display (with SSD1289 controller) for my aquarium project.

Fortunately I got a second Mega 2560 for my paludarium tank the other day so I've been able to fiddle around on that and not have the LEDs on my tank flash every time I re-upload a program.

It has been a very steep learning curve for me but I'm starting to get the gist of it. The only software I've been able to fully compile and work is Henning Karlsens UTFT program and in that package the one that works the best that I've played around with and mostly figured out is the rotate bitmap example.

I managed to get my own pictures on it, as well as stop rotation, change size, and position of the picture. One thing I can't figure out is these annoying lines at the bottom right of each picture, assuming all the letters are their own little picture.

5  Using Arduino / Project Guidance / Re: RTC acting strange on: December 01, 2012, 03:03:49 pm
Well the RTC module has been working quite well for some time now, I've only encountered one issue: Daylight savings time. I figured I could just recompile the program on my computer and count on it working like it has in the past, grabbing the time off my computer, which does account for daylight savings time. Unfortunately though, the serial monitor displays the time an hour ahead when I try to re-upload the program.

My solution in the meantime is to change the times for 'sunrise' (dim on) and 'sunset' (dim off) accordingly, which I suppose works, however I was wondering if there was an easier way of doing this?
6  Using Arduino / Project Guidance / Re: RTC acting strange on: October 18, 2012, 12:51:18 pm
Lol I should've! Are you talking about the Phi-Connect shield and Phi-Connect breakout boards?
The Phi-2 looks like a cool shield, I would've definitely gone that route if the TFT LCD displays weren't as cheap.
7  Using Arduino / Project Guidance / Re: RTC acting strange on: October 18, 2012, 10:58:44 am
Got a tiny PCB from radioshack yesterday and got everything soldered up. It finally works! Well, almost.
But I'm so happy I could cry, this has been driving me nuts. Even though it's my fault for buying such a cheap breadboard, you can guarantee the company I bought it from is going to get a very descriptive letter on where they can shove their breadboards.

The only issue I'm running into now, and it may not even be an issue, is the LED on the breadboard. Something I've noticed after I upload the program is the little orange LED labeled 'TX' glows a solid orange, but when I open the serial monitor the LED blinks with each second, is this just the Arduino telling me it's interfacing with a computer, or is it more indicative of a running program?

Edit: Nevermind, just read the Arduino tutorial on RX and TX, thanks again for your help everybody! You've all been fantastic, I really can't thank you enough.
8  Using Arduino / Project Guidance / Re: RTC acting strange on: October 17, 2012, 01:26:34 pm
Ahh you very well may be on to something here, as I'm using a very cheap made-in-china breadboard. Will report back once I've got it soldered.
9  Using Arduino / Project Guidance / Re: RTC acting strange on: October 17, 2012, 01:07:13 am
Continued analyzing of the serial monitor has shown a certain pattern, where every once in a while the date/time is replaced by one in the year 2165 and a random time, though usually in the hour 5 p.m. or 3 p.m. (15 or 17). This is very troublesome for me because my fade function for the LEDs is based off of decreasing the brightness each second if the condition is met, and the condition is a time. Sometimes the monitor will display 15 correct values, sometimes every other value will be in the year 2165. I can't wrap my head around it
10  Using Arduino / Project Guidance / Re: RTC acting strange on: October 17, 2012, 12:57:56 am
Well, increased observation of the serial monitor has brought me back to where I started pretty much. Using both robtillart's code and my original code I get this on the serial monitor:

2012/10/16 22:49:46
 since 1970 = 1350427786s = 15629d
 now + 7d + 30s: 2012/10/23 22:50:16
2165/165/165 165:85:47
 since 1970 = 2028815851s = 23481d
 now + 7d + 30s: 2034/4/23 15:58:1
2012/10/16 22:49:48
 since 1970 = 1350427788s = 15629d
 now + 7d + 30s: 2012/10/23 22:50:18
2165/165/165 165:85:49
 since 1970 = 2028815853s = 23481d
 now + 7d + 30s: 2034/4/23 15:58:3
2165/165/25 22:49:50
 since 1970 = 2016202894s = 23335d
 now + 7d + 30s: 2033/11/28 16:22:4
2165/165/165 165:85:51
 since 1970 = 2028815855s = 23481d
 now + 7d + 30s: 2034/4/23 15:58:5
2165/25/16 22:49:52
 since 1970 = 1908548496s = 22089d
 now + 7d + 30s: 2030/7/1 16:22:6

And although when I watched the serial monitor for a while after adding the resistor for SCL, it was printing perfectly, now it's messed up again. I also highlighted the dates, as I believe they may be important in troubleshooting this problem. I checked the libraries and downloaded the latest ones so I know they're all good. Could it be a bad chip or would they react differently? smiley-confuse smiley-confuse
11  Using Arduino / Project Guidance / Re: RTC acting strange on: October 15, 2012, 11:43:10 pm
Thanks for the advice! This would definitely look a lot cleaner on a PCB, and since they're so cheap maybe I'll just order a new battery holder.

Also thank you very much robtillaart for the updated code! It compiled perfectly the first time, and worked very well in the serial monitor.

The only thing I'm currently stuck on now is the time that is set to the arduino when I compile/upload is about 5 minutes ahead of the actual time. According to the code it should be set exactly to my computers time, but it's consistently ~5 minutes fast, with both robtillaart's code and the unmodified code I've been using. I'm very confused as to what could be causing this error. I've also tried ungrounding the battery each time to 'reset' the DS1307 chip.
12  Using Arduino / Project Guidance / Re: RTC acting strange on: October 14, 2012, 08:08:17 pm
Sorry!  smiley-red Had to sprint out the door to radioshack to get another 4.7k resistor before they closed.

Well, it seems to be working now that I have two separate resistors. It's still approximately one minute behind but I'm not too bothered by that.

And now everything is printing in the correct place, the format for the serial monitor is:

Current Date/Time
# of seconds and days since 1970
One week and 30 seconds from now Date/Time

For example:
2012/10/14 18:0:56
 since 1970 = 1350237656s = 15627d
 now + 7d + 30s: 2012/10/21 18:1:26

Before today, when the circuit was semi-working, and I didn't have SCL pulled up with a resistor, it would occasionally count time correctly. The odd thing is the actual date and time would always print in the "One week and 30 seconds from now Date/Time" slot.
Whereas now the actual date and time prints in the "Current Data/Time" slot, as it should.

Anyways, thanks for everyones help and clarification. This was driving me nuts!

Here's the pictures if you were still curious:
The Battery on the right kind of got cut off, but that's what the red and black wires disappearing go to.

No Pullup resistor

Additional pullup resistor added

13  Using Arduino / Project Guidance / Re: RTC acting strange on: October 14, 2012, 06:56:14 pm
Very strange things are going on. I rewired almost everything with shorter wires like you suggested (I was using cheap male-to-male wire connectors and switched to stripping solid core 22 gauge wire) and this time I did nothing to pullup SCL, like before. This time the output seemed to be working, but displayed the time as 3:50, which is approximately the time I tried pulling SCL up with the same resistor as SDA. So I tried pulling SCL up again, and just like the last time I pulled it up, nothing worked and nothing output to the serial monitor. Just afterwards I tried the circuit without pulling up SCL and this time it reads 4:39. The actual time was 4:41, and 4:39 is when I tried to pull up SCL.

So I did this procedure over again, except tried to switch it as fast as possible, between having a pullup resistor and having no pullup resistor for SCL. I found the quicker I can switch it, the more accurate the time displays. So for some reason the chip's time is set when SCL is pulled up, but can only display the time when there's no voltage?

Just took some pictures, they'll up in a couple minutes.
14  Using Arduino / Project Guidance / Re: RTC acting strange on: October 14, 2012, 05:55:25 pm
Hmm, interesting, I appreciate the informative post, though you are correct about me being confused   smiley-lol.

I only have one 4.7k ohm resistor, so I had both SDA and SCL going through that to the voltage, but then that turned the entire system off, outputting nothing to the serial monitor. Is this just a case of requiring another resistor?

One other thing I should note is I have SQW/OUT wired to nothing.
15  Using Arduino / Project Guidance / Re: RTC acting strange on: October 14, 2012, 05:31:14 pm
Homebrew, but here's my part list:

Product: Plastic Battery Holder 1-cell ø20mm PC 120591-1

Product: Lithium Battery CR2032 Ф20mm 225mAh 3V CR2032

Product: 4.7k Ohm 1/4W Resistor ±1% 4k7 472

Product: 32.768kHz Crystal Cylinder

Product: DS1307 Dallas Maxim 64 x 8 Serial Real-Time Clock DIP8

And I wired it up based on the 'typical operating circuit', except without the scl being pulled to 5.5V.

It's also all wired up on a breadboard.
Pages: [1] 2 3