Show Posts
Pages: [1] 2
1  Forum 2005-2010 (read only) / Syntax & Programs / Re: if statements and bi-directional bytes on: June 03, 2010, 08:57:09 pm
Try:

Serial.print(254, BYTE);

8-Dale
2  Forum 2005-2010 (read only) / Syntax & Programs / Re: Strange JAVA errors when uploading code on: June 04, 2010, 02:19:25 pm
Thanks!  I think I just needed another pair of eyes on this. I feel like such a newbie, making mistakes like that.

8-Dale
3  Forum 2005-2010 (read only) / Syntax & Programs / Re: Strange JAVA errors when uploading code on: June 04, 2010, 11:05:14 am
My code can be found at http://www.lynxmotion.net/viewtopic.php?f=9&t=5342&start=30#p63618

8-Dale
4  Forum 2005-2010 (read only) / Syntax & Programs / Strange JAVA errors when uploading code on: June 03, 2010, 03:32:11 pm
I'm working on an Arduino Serial Slave sketch that allows it to be a command driven slave to another micro as well as allow for adding autonomous code for controlling a robot. However, I am getting some weird JAVA related errors when I try to upload my code, which looks fine as far as I can tell. Unfortunately, errors scroll by to fast to read. I'm using the Arduino 018 IDE upgraded with the current Sanguino software. I can upload other sketches, so there must be something related to my current code that is triggering the errors. My code is too large to include in a posting.

Are there any known issues with the Arduino IDE setup I am using?

8-Dale

5  Forum 2005-2010 (read only) / Development / Re: Library for TLC5940 16-channel PWM chip on: September 01, 2008, 01:08:05 am
Quote
A few of the changes:
  • See TLC5940LED_pins.h for the pin setup.
  • Added fading functionality: Tlc.newFade(channel, ms duration, start value, end value, when to start).  See the examples.
  • Added the ability to play animations from program memory (14kB!) .  See the examples again.
  • See TLC5940LED.h for all the function name changes
I'll release a finished version soon which will include an animation creator to make animations.
This is excellent! I have a bunch of the TLC5940's here and have been wanting to tinker and see what I can do with them.  One thing I want to do is use 3 of these for a 16 channel RGB LED controller. Thank you very much for making chips like the TLC5940 easier for us to use!  smiley smiley

8-Dale
6  Forum 2005-2010 (read only) / Development / New Python based IDE for the Arduino on: August 31, 2008, 12:23:40 pm
A few of us Arduino users are starting a project to create a new extendable IDE for the Arduino. We are planning to code as much as possible in Python (v2.4.4 at present), and allow for as much extendability as we possibly can build in. For those who are interested, we have a Wiki and an IRC channel #ArduinoIDE on irc.freenode.net, which is also for discussion of all aspects of IDEs for the Arduino and compatible boards.

Come and join in if you are interested!

8-Dale
7  Forum 2005-2010 (read only) / Development / Re: Version 13 of the IDE on: December 20, 2008, 05:46:14 pm
It won't work within the IDE (0012) either.  It gets errors on WProgram.h now.  However, if I pull all the library code into a sketch, everything builds  using the Makefile, and runs perfectly, but can not be built inside the IDE.

8-Dale
8  Forum 2005-2010 (read only) / Development / Re: Version 13 of the IDE on: December 20, 2008, 04:39:39 pm
The macros do not appear to be at fault in this case. The build system is just not finding the .h file for my library.

8-Dale
9  Forum 2005-2010 (read only) / Development / Re: Version 13 of the IDE on: December 20, 2008, 02:40:59 pm
I am trying to write a library for the Arduino, but am having a lot of problems with IDE 0012.  I am guessing these problems have to do with the macros that were added for casting, but I am not sure.

The build system will not find the .h file for my library at all. When using the IDE to try to build my sketch that uses the new library, I get errors in WProgram.h and errors that my class is not defined anywhere. When I have all of my code in a sketch, including the library code, everything builds and works fine. My library dir is in the right place:  ./arduino-0012/hardware/libraries

Is there an alpha or beta of IDE 0013 available that I can try out?

8-Dale
10  Forum 2005-2010 (read only) / Development / Re: Version 13 of the IDE on: December 11, 2008, 04:25:31 pm
Please fix the IDE formating for tabs.  This is really the only thing that annoys me.  I'm not sure the IDE preserves tabs either, which it should do.  I'd also like to see a preference for number of chars for a tab, so we could define our tab length.  I prefer to use a setting of 4.

Currently, tabs seem to be converted to spaces in the IDE.

8-Dale
11  Forum 2005-2010 (read only) / Development / Re: Hardware Abstraction on: December 20, 2008, 02:36:25 pm
@mem,

Yes, that would be true because the libraries deal directly with the hardware. Without a bunch of defines and #ifdef/#endif blocks in libraries, it would be more work to accomplish what I am proposing. However, this is how a lot of C/C++ is done in order to keep it portable to different architectures and systems. One only has to look at some of the GNU code to see this.

The whole idea of going to this extra effort is to make things easier for the end users. That is also one of the main reasons for the Arduino existing.  If the software does not make things as easy as the hardware, then there is something wrong. In this case, I think it is the software that has to keep up with the hardware. There will continue to be new chips and new boards that use those chips, and it's important to make them as easy to use as possible.

Even though it is currently on hold, there has been quite an effort to port the Arduino environment to the ARM architecture. That's a whole new world, and I support this kind of effort fully. The Arduino is a wonderful concept and I am enjoying working with mine, but I need more features (hardware and software) to really accomplish things I want to do. It's wonderful that the Arduino is so easy to use, and it's the real reason I am getting back to tinkering with hardware and software after being away from it for many years.

The Arduino development environment has great potential to do the same for architectures like ARM and others that it is doing for AVRs now.

8-Dale
12  Forum 2005-2010 (read only) / Development / Re: Hardware Abstraction on: December 20, 2008, 04:45:03 am
If done correctly, I think any libraries written for the base Arduino (currently the Duemilanove) should port up or down  gracefully to other boards based on AVR chips. I'm about to start digging into this deeper, and think it really depends on the support within the IDE.

There should be, if there isn't already, a well defined method to add support for boards with both less and more hardware features. Things such as maximum number of I/O pins, mappings to current Arduino pins, etc, should all be in hardware dependent files that are selected when a board is selected in the IDE. The same would be true for the type of pins (UARTTX, UARTRX, UARTCTS, I2CSDA, I2CSCL, etc). It should be possible to abstract all of this even if it involves a lot of rework of the IDE. If mappings are done right, it should be pretty intuitive to work with different boards, even if the hardware features are a real superset of what the Arduino has.

If the above is already true, then writing libraries to be hardware dependent should not be difficult. While I think the current Arduino IDE is a bit less than it really needs to be, it's in the right ball park for the targeted audience.

As for writing libraries, I believe each major hardware component should have support in a separate library that does not have any other dependencies.  These hardware libraries should be able to stand completely alone unless some core routines are reasonable to share between things, such as UARTs, SSPs, etc for functions like I2C and SPI. Those core routines should be part of the native development environment that are included with it. This would allow different libraries thing such as I2C, SPI, serial communication, digital I/O, analog I/O, etc to be easily written, without worries of colliding with any other current user accessible library.

8-Dale
13  Forum 2005-2010 (read only) / Development / Re: Qt Creator on: December 22, 2008, 10:03:10 pm
I haven't really looked at QT Creator. Some of us are creating a new Python based IDE for the Arduino that you might want to consider helping out on.

8-Dale
14  Forum 2005-2010 (read only) / Development / Re: ArduinoBotics on: December 20, 2008, 04:27:25 am
Here is a status report.

I curently have my Arduino connected to 5 servos that make up a 5DOF (degree of freedom, a single joint) of a new robot leg I've been tinkering with.

I am also ready to make my SoftwarePWM stuff into a library and have hacked the Makefile to build a library outside of the Arduino IDE. I can successfully build the library.  However, for some reason the build is not finding my .h file for the library, which is in the hardware/libraries/<libname> dir. This is using the Makefile because building within the IDE does not work at present and generates errors I don't see, but perhaps should see, using the Makefile.

The new library can PWM any pin now, just as the original servo libray it is based on could.  I've modified the write() routine to accept an angle range from -90 to +90 degrees and have added a write180() routine that works for a range of 0 to 180 degrees. I've also added, but have not yet tested, error checking in all routines where range checks are done. Each routine has separate error code(s) as appropriate. I've also reformatted the code to be what I hope is much more readable.  Servos can also be directly pulsed using the pulse() routine.

This library is based directly on the current Servo library. I will be offering the changes back to the original author if he is interested, as soon as I am happy with the code and can make a full release. I still have a couple bugs to work out in routines that read back data for the user.

I am planning to purchase an Axon controller board that is made by Society of Robotics and uses the Atmega640. I would very much like to see the Arduino environment ported to this board and think it would be a great extension for the Arduino development environment.  With up to 16 ADCs and up to 4 UARTs, I think the Axon would be great with the Arduino environment. This could help bring the Arduino environment fully into the Robotics and Process Control areas. I am hoping to help with this port as soon as I learn a bit more about how things are build for the Arduino.

Remember, the Arduino is not just the board (hardware), but also the IDE (software) used to develop for it.

8-Dale
15  Forum 2005-2010 (read only) / Development / Re: ArduinoBotics on: December 09, 2008, 11:47:52 pm
@guiott:

Nice layout - another octagonal form robot. smiley My W.A.L.T.E.R. is also an octagonal form robot. smiley Right now, I am just more interested in this new leg design, and seeing what it might be able to do.  I have another small robot I've been working on, so I may attach two of these legs and a back support of some kind and see what happens. smiley I may make it a full tri-pod too.

I'll have some 3D CAD modules done soon.

8-Dale
Pages: [1] 2