Show Posts
Pages: 1 ... 26 27 [28] 29 30 ... 134
406  Community / Bar Sport / Re: Any old timers able to host my code ? on: February 06, 2014, 11:27:36 am
Hi Duane
I'm quite willing to let you use my server to store data. But if it is about open source code why not use github?
That gives you version control and not hassle with third parties for free (github is free for open source projects)
There are quite a lot of Arduino libraries on Github The Arduino code is on github so is my arduino eclipse plugin (and the lib I made from your rc code  smiley-grin ).

for instance the rc lib can be found here and if you want to link to the code you can to

But if you prefer not to. I have room  on smiley-grin
Best regards
407  Using Arduino / Programming Questions / Re: How to find out what is to big (for both data and program) on: February 05, 2014, 12:42:29 pm
I found a good reference.... the AVR data sheet. More specific the AVR CPU core chapter and the AVR ATMega61U4/ATmega32U4 Memories section.
Now I understand the relation between memory allocation and source code I've been able to drop below the 32K again :-)

Program:   32356 bytes (98.7% Full)
(.text + .data + .bootloader)

Data:       2467 bytes (96.4% Full)
(.data + .bss + .noinit)

Thanks for all the input.

PS I finally understand why PROGMEM is a good thing. For those who don't I'll explain
When having a standard char[]="blabla" he is in the .data section and .data is counted in both Program and Data.
If you use char[]PROGMEM="blabla" the load will move from .data to .text. This makes no difference for program but it does decrease the Data size.
408  International / Nederlands / Re: timer ofzo. on: February 05, 2014, 10:53:12 am
Mijn remark is misgelopen.
[ code/]
staat op de verkeerde plek.
Is er een manier om dat achteraf te vwranderen?
I zie wel niet waar en ik denk dat het [ /code] in plaats van [code/] moet zijn; maar ja je kan dat veranderen (toch als het om een post op dit forum gaat  smiley-wink )
Bij elke post die jij hebt gemaakt staat een modify. Click daarop en je kan je tekst helemaal aanpassen.
Indien het om een inhoudelijke aanpassing gaat vraagt de beleefdheid dat ook aan te duiden.
Met vriendelijke groet
409  International / Nederlands / Re: timer ofzo. on: February 05, 2014, 09:30:47 am
effe laten weten dat we nog mee lezen.
Je schrijft
uint16_t days = 0;  // 365 does not fit an int.
maar dat klopt niet. Wat je vast bedoelt is
uint16_t days = 0;  // 365 does not fit a byte.
met vriendelijke groet
410  Using Arduino / Programming Questions / Re: my sketch doesn't know how to link .ino with .h and .s file s on: February 05, 2014, 09:27:58 am
Which version of the ide are you using?
I mean IMHO s files only got supported in 1.5.5.
Best regards
411  Using Arduino / Programming Questions / Re: How to find out what is to big (for both data and program) on: February 05, 2014, 09:22:57 am
thanks for the input.

It seems to me I need more understanding of how the code impacts the size of program memory and data memory.
Anyone knows a good reference that can explain me what .text, .data, .bootloader, .bss, .noinit are and how they relate to the code?

Im pretty sure I need to look in my library I posted on github because when I replace the library with a empty replacement I have enough space left.
With the library (SerialCommunicator/SerialCommunicator.h)
Program:   32626 bytes (99.6% Full)
(.text + .data + .bootloader)

Data:       2836 bytes (110.8% Full)
(.data + .bss + .noinit)

with the empty library (SerialCommunicator/FakeComunicator.h)
Program:   24850 bytes (75.8% Full)
(.text + .data + .bootloader)

Data:       2144 bytes (83.8% Full)
(.data + .bss + .noinit)

For the sake of argument I update the code on github with what I currently have on my system.
the libs can be found here
The libraries being used in this project are

Best regards
412  Using Arduino / Programming Questions / Re: How to find out what is to big (for both data and program) on: February 04, 2014, 09:51:02 pm
I think your programs abuot 10 times the size it should be! Have you been copying and pasting code take a look at functions an inparticular functions with parameters.
I'm not sure on which information you base that statement.
Lets see I'm using a yun (32K) and the bridge lib and serial and servo and software serial and gps and wire and support a full serial interface to be able to steer my arduino program via a web browser.
As you state my program is 10 times to big you state this all should fit in 3k? I guess not. smiley-mr-green

But I am aware there must be improvements. After all I started the thread to be able to find the "sweet spots".
Especially for the lib that does the serial communication there must be improvements. If you want to take a look at the code please do. There are actually 3 libraries and they are available at:
SerialStringReader is a library that allows to read line by line from the serial input.
SerialDataInterface is a base library you need to derive from if you want to share data
SerialCommunicator combines the 2 above for communication to allow to set and get values.
I really welcome feedback.
Och yes the version on github is not the very latest. I already shortened lots of the messages.

That AVR costs about US$7 so like 3Eu? You get onboard 128K flash, 16K SRAM, 36 I/O pins, 2 Serial ports that can also run as full speed master mode SPI ports in addition to the full mode SPI port, that's serious bang for the buck your project might not outgrow soon.  It's a good excuse to buy new toys.
You are right but .....
I have plenty of arduino's lying around but here I moved from a mega to a yun because of the linux arduino integration.
The capablity to run linux commands directly from arduino is something I really need because I have 2 robots and a storage server talking to each other via HTTP.
If the mega yun comes out I'll buy a couple right away.

Best regards
413  Using Arduino / Programming Questions / Re: How to find out what is to big (for both data and program) on: February 04, 2014, 07:11:59 pm
avr-objdump -h -S XXX.elf > dump.txt
That really got me going.
I'm not claiming I understand anything I see but my program did go below 100% already. Now the data.
Thank you very much.
Best regards
414  International / Nederlands / Re: Inlezen gegevens - "Woord" on: February 04, 2014, 05:31:20 pm
hier staat dat arduino liever const dan define heeft.
En hier een extrat uit de bridge
class Process : public Stream {
    // Constructor with a user provided BridgeClass instance
    Process(BridgeClass &_b = Bridge) :
      bridge(_b), started(false), buffered(0), readPos(0) { }

    void begin(const String &command);
    void addParameter(const String &param);
    unsigned int run();
    void runAsynchronously();
    boolean running();
    unsigned int exitValue();
    void close();

    unsigned int runShellCommand(const String &command);
    void runShellCommandAsynchronously(const String &command);


Waarom dat het niet char* mag zijn lezen we wel eens op een referece page  smiley-twist
Ik heb men eigen stukjes bridge class geschreven zonder String.

Met vriendelijke groet.
415  Using Arduino / Programming Questions / How to find out what is to big (for both data and program) on: February 04, 2014, 04:48:08 pm
I have been fighting the 32K program space of my yun for a while now. I already removed the bootloader (so I do have 32K  smiley-grin ) but I just compiled my program and got the following info (Arduino eclipse IDE)
"/home/jan/programs/arduino-1.5.5/hardware/tools/avr/bin/avr-size" --format=avr --mcu=atmega32u4 "/home/jan/workspaces/arduino/Robot/batterijlader/Release/batterijlader.elf"
AVR Memory Usage
Device: atmega32u4

Program:   33190 bytes (101.3% Full)
(.text + .data + .bootloader)

Data:       2774 bytes (108.4% Full)
(.data + .bss + .noinit)
The arduino IDE would say something like this
"/home/jan/programs/arduino-1.5.5/hardware/tools/avr/bin/avr-size" -A "/home/jan/workspaces/arduino/Robot/batterijlader/Release/batterijlader.elf"
/home/jan/workspaces/arduino/Robot/batterijlader/Release/batterijlader.elf  :
section      size      addr
.data        1024   8388864
.text       32166         0
.bss         1750   8389888
.stab      117348         0
.stabstr   186587         0
Total      338875

So I did come to the conclusion: "this is to big"; all on my own (tab on the back "good boy")
I already got String out of my sketch (that did make a difference)
But now I'm stuck. I probably have some big char arrays and some bad code eating program space; but how can I find the big parts (no need to waist time on a 1 byte peace of code, is there?) in these 33K of compiled program?
I've done some googling but I only found speed profiling things (apart from MAP files and -size command of which I'm not sure how relevant they are).

Any help is appreciated.
Best regards

416  Community / Products and Services / Re: Ok to post links to ebay sales? on: February 04, 2014, 01:32:49 pm
But instead of posting a waste-of-time link, a simple yes would suffice.  Thank you.
Unfortunately things are not so simple here. I am a forum member just like you. My yes is valid as much as yours.
There is no "arduino authority" present here (unless things go really badly and someone call them in). There are only contributors (like you and me) and some police (administrators) deleting spam and moving posts.
On top of that this forum is working based on "give them fish they have food for a day; learn them how to fish they have food for the rest of their lives"
So giving you a (invalid) yes may have given you a fish. Giving you knowledge that you can google the forum is learning you (and other users) a trick that you can use to get fish (and not waste my time) next time you have a question.

417  International / Nederlands / Re: Arduino + PWM + Wireless on: February 04, 2014, 10:40:47 am
Beste jantje,

ik heb uw voorgestelde programa geprobeert en ik krijg inderdaat de zelfde cijfers (min=1150 neutraal= 1550 max=1950) maar ik loop met deze code weer een beetje tegen het zelfde probleem aan. hoe kan ik deze waarde die uit het arduinno komt zo bewerken dat ik deze waarden kan  veranderen met "Command {Map}".
Beste Nico Verduin.

Nee dat is juist het hellen probleem als ik doe wat u zegt
  int Input = (servo1,DEC);
Dan krijg ik alleen het getal 10 als uitkomst en deze verandert ook niet als ik met de controler pook heen en weer beweeg.

Eric Nientker

Dit lijkt me conflicterende informatie.
Kan je dat voor een beter begrip uitleggen?
Met vriendelijke groet
418  Community / Products and Services / Re: Ok to post links to ebay sales? on: February 04, 2014, 10:37:28 am
The top says (on my browser)
Ongeveer 37.500 resultaten (0,14 seconden)
Which means that google found around 37.500 results containing ebay on this forum.
As the posts don't scream: no links to ebay .....
419  International / Nederlands / Re: Inlezen gegevens - "Woord" on: February 04, 2014, 10:31:22 am
Ik ben zelf meer een voorstander van
#define pin 12
Ik heb gemerkt dat bijvoorbeeld
const int pin = 12;
8 bytes code meer gebruikt zodra je een simpele move naar een variabele doet tov. de define.

Sommige mensen houden niet van #define en #ifdef  smiley-eek
Maar ik vermoed dat die alleen maar kleine sketches maken of op een Arduino Mega of due werken.
Arduino zelf gebruikt String in de bridge library die geschreven is voor een yun die 32k (-4k bootloader) heeft  en dat terwijl je linino kunt gebruiken om die string operaties te doen smiley-eek
Met vriendelijke groet
420  Community / Products and Services / Re: Ok to post links to ebay sales? on: February 04, 2014, 10:23:31 am
Pages: 1 ... 26 27 [28] 29 30 ... 134