|
||||||||||||||||
|
||||||||||||||||
|
|
#31 |
|
Algae Grower
|
Any update on this? Even though I can't get all my strings lit concurrently, I'm interested in the new Typhoon code!
|
|
|
|
| Sponsored Links | |||
Advertisement | |||
|
|
#32 |
|
Algae Grower
|
I've done quite a bit of tinkering with the Typhon code, but it's a lower priority than the mountain of stuff that will get me fired if I don't do it
I do have an improved version of my simpler code (see first post in this thread) that I wrote a few months ago. It supports the ChronoDot RTC (the DS3231) and now you can set the time to the second from a PC without having to reflash the Arduino. Much cleaner than the previous way. I didn't post it because it isn't very documented yet, but it does work fine. If anybody wants this, let me know and I'll clean it up. |
|
|
|
|
|
#33 |
|
Planted Tank Obsessed
|
Sink, is be very interested to see that, my chronodot rtc is already on order.
Don't feel bad, and there is nothing inexcusable about it. Thanks for doing whatever real life allows. |
|
|
|
|
|
#34 |
|
Algae Grower
|
Okay, I've posted the latest version of my code (not the Typhon stuff yet, sigh) on bitbucket. I also updated the libraries.zip archive to include the library for the ChronoDot. The links in the first post point to the latest version of the code.
This one works a bit differently. Once you've uploaded the tank-control sketch to the Arduino, you can get the time/set the time using a Python script (client.py) you run on your PC while connected to the Arduino over USB. You'll need to change the "PORT" line in that script to match your system. You also need to install the "serial" library for Python for your system. Once that is done, you run the script and enter "sync" at the prompt to set the Arduino time from your PC system time. You can also enter "time" to see what the Arduino thinks the current time is. Finally, either "quit" or "exit" will quit the program. It needs to be documented better and I'll get around to that eventually, but if you have any problems just PM me and I can help. |
|
|
|
|
|
#35 |
|
Planted Tank Obsessed
|
Hey, thanks a lot.
Hope you had a good weekend. |
|
|
|
|
|
#36 |
|
Planted Tank Obsessed
|
Sink,
The errors I was getting were while using the newest version of the Arduino IDE (1.0) After finding the errors I PMed you about I looked at them in C++ and not knowing enough to fix them I decided to try them in the .0023 beta of the arduino IDE and it uploaded fine. I'm working on the remaining steps, but just wanted to post this in case anyone had the same problem. It seems the 1.0 checks all included codes, while the beta did not? |
|
|
|
|
|
#37 |
|
Planted Tank Obsessed
|
I'm currently stuck on the python bit, but that's more due to ignorance than anything.
|
|
|
|
|
|
#38 | |
|
Algae Grower
|
Quote:
I'm not using the Arduino IDE at all but my hacked together build environment is based on the Arduino 0023 core libraries so the code is written to compile against that. I will eventually upgrade even though there isn't a very good technical reason to do so: the new core uses more RAM than before -- a big deal on a microprocessor -- and adds few useful features. But since it'll likely require modifying the libraries I'm not in a big hurry to do so. Use 0022 or 0023 for now Thanks for the report. Please let me know about any other issues you run into and I'll update the docs. Or write it up for me and I'll include it in the distribution .
|
|
|
|
|
|
|
#39 | |
|
Algae Grower
|
Quote:
Nah, it's a good learning experience. Install python 2.7 (code isn't compatible with 3.x yet) and then the pyserial library (http://pypi.python.org/pypi/pyserial). They you just have to figure out what the usb-serial port is called on your system, change that line ("PORT = ???") in the code, and you're off to the races. |
|
|
|
|
|
|
#40 |
|
Planted Tank Obsessed
|
I got this script up and running last night. It works like a charm!
Esp. if you wire your circuit right. Thank you Sink! |
|
|
|
|
|
#41 | |
|
Algae Grower
|
Quote:
I just uploaded a new version with a bit better comments in the code for what people need to change to make it work. It doesn't add any features so no need to upgrade. |
|
|
|
|
|
|
#42 |
|
Planted Member
|
Well i'm playing catch up on this whole Code thing.. I'm basically worthless at it. BUT i bought an arduino Uno and a chronoDOt RTC and by gosh i'm gonna make this thing work. so a few questions:
If i were to reduce the code to only have one driver running off of it, what would i need to edit? Also, for the life of me, i can't figure out what the heck Python is. I got it, installed it, and i am still just absolutely clueless. In my defense, i am not an idiot.. i'm just an engineer. so i've never had a good reason to try and delve into this. Thanks in advance for the help!! |
|
|
|
|
|
#43 |
|
Planted Tank Obsessed
|
Just remove the lines that reference one of the channels.
"const int kChan1Pin = 10; // Channel 1 Pin" is where the second channel is assigned to pin 10 " if (state[1] >= 0 && state[1] <= 1023) Timer1.setPwmDuty(kChan1Pin, state[1]);" Where the second channel state is set. Really, all I did was delete that first line and try uploading it via the Arduino alpha ide, it told me what else wouldn't work. Once I deleted the lines it told me to it uploaded and worked just fine. Python is another program that works in a slightly different language. Let me see if I can remember how I set my RTC. |
|
|
|
|
|
#44 |
|
Planted Member
|
great thank you! also, is there a program that will show what's going on on the arduino board as it happens? I'm not used to sending a program, and hoping it's doing what i told it to.
|
|
|
|
|
|
#45 |
|
Planted Tank Obsessed
|
You can set up code for serial monitoring, as far as I know, that's the only way to do it.
|
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|