Show Posts
Pages: [1] 2 3 ... 135
1  International / Nederlands / Re: Waarom connectie naar GND in dit button voorbeeld? on: August 31, 2014, 07:07:31 am
Het is een "voorbeeld". En een voorbeeld hoort  "voorbeeldig" te zijn.
In heel wat gevallen is de "pull down" weerstand niet nodig. Maar soms ook wel. Dus zoals ivanflo reeds zei:
Quote
Wanneer we een open input laten als "open" dan weet de arduino niet direct welke status aan te nemen.
Met andere woorden: als je geen pull down hebt; gebruik je eigenlijk een zijeffect en dat is niet "voorbeeldig".
Ook als je meer knopjes (of ander dingen) gebruikt zou je wel eens buiten de mogelijkheden van het zijeffect kunen komen en dan "werkt het ineens niet meer"
Quote
Zeker wanneer we in een onstabiele stoor omgeving zitten, boormachine, TV, en dergelijke, kan dit negatieve gevolgen hebben.

Merk ook op dat een voorbeeld maar 1 voorbeeld is. Je zou ook met een pull up weerstand kunnen werken of met  INPUT_PULLUP in de code.

Met vriendelijke groet
Jantje
2  Development / Other Software Development / Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches on: August 29, 2014, 11:12:41 am
The plugin uses arduino provided stuff.
However if you have in your path programs with the same name those may be preferred.
In most cases the FQN is used but it may be there are cases that do not use FQN in which case program with teh same name in the path may take precedence.
You can always look at the console output to verify.

Best regards
Jantje
3  International / Nederlands / Re: Hulp gezocht bij inlezen txt file on: August 24, 2014, 04:45:05 am
eschraven
Waar je volgens mij eens goed moet over nadenken is: hoe ga ik die waarden die ik inlees opslaan in het geheugen.
Wat jij volgens mij nodig hebt om te doen wat je hier omschrijft is een linked list.
Maar in arduino wereld (weinig geheugen en slecht geheugen management) lijkt me dat geen goed idee.
Wat wil je eigenlijk doen met de "gelezen nformatie"? Is het nodig om die steeds in het geheugen te hebben? Is het niet makkelijker om de informatie te lezen als je ze nodig hebt?

Met vriendelijke groet
Jantje
4  International / Nederlands / MOVED: USB SERIAL CLASS WITH OUT USART on: August 23, 2014, 02:19:45 pm
This topic has been moved to Programming questions as it is not written in Dutch/nederlands.

http://forum.arduino.cc/index.php?topic=262663.0
5  International / Nederlands / Re: Program Arduino Pro Mini with an Arduino mega 2560? on: August 20, 2014, 03:10:02 pm
Zoals MAS reeds zei: Hoe meer en correctere info hoe makkelijker we kunnen helpen.
Je zegt :"Alleen ik kreeg steeds de foutmelding AVR not in SYNC en ik had het Aruino ISP script wel op de Arduino Mega 2560 staan voor de duidelijkheid, De bootloader kon ik er wel op zetten dan kreeg ik geen foutmelding."

Kan je de dump van avrdude hier even neerzetten?

Normaal zou dat moeten werken maar als je programmatje te groot is voor de Arduino Pro Mini 5v 16Mhz heb je natuurlijk een probleem.

Jantje
6  Development / Other Software Development / Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches on: August 16, 2014, 09:25:40 am
oeps that had to be duino IDE 1.5.6 as that one comes with the makefile.
7  Development / Other Software Development / Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches on: August 16, 2014, 07:35:32 am
@wonglokat
This is probably related to the fact arduino no longer delivers make with Arduino IDE 1.5.7
Did you install a make?
Can you try with Aduino IDE 1.5.7?
Best regards
Jante
8  Development / Other Software Development / Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches on: August 08, 2014, 01:59:32 pm
can you provide a screenshot and the console output?
9  Development / Other Software Development / Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches on: August 05, 2014, 10:12:28 am
ino support is a add on.
You can read my opinion on ino files here: http://blog.baeyens.it/#post13
Best regards
Jantje
10  Development / Other Software Development / Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches on: August 05, 2014, 05:42:23 am
Axel
1)  I created a github issue https://github.com/jantje/arduino-eclipse-plugin/issues/186
It contains a work around that will survive changes to the project but need to be done for each new project.
2) I'm not sure I understand you. V2.2 (from the market place) does not support ino files. As you don't like .ino that should be ok, isn't it?

Jantje
11  Development / Other Software Development / Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches on: August 04, 2014, 03:48:00 pm
thanks for the search.
I had this problem but I assumed my workspace was getting corrupted.

Best regards
Jantje
12  Development / Other Hardware Development / Re: Linux shield for arduino compatible boards=>mega yun and due yun on: August 01, 2014, 05:06:56 pm
Lets hope he makes it  smiley-grin
13  Products / Arduino Due / Re: What are the possible PWM frequencies? And how to set them. on: August 01, 2014, 03:54:42 pm
I feel I'm getting somewhere. Thanks for that. But I'm not there ... please keep providing input.

I have now
Default PWM frequency =1000 Hz (the same for all pwm pins)
theoretic frequency range  microhertz (one cycle per 3 days) to 42 MHz
practical frequency range microhertz (one cycle per 3 days) to 328 KHz
PWM Pins D2-D13 (as to http://forum.arduino.cc/index.php?topic=132130.0 also pins D38 to D44

The code to set pin 6 to 10kHz, 50% duty cycle is
Code:
  analogWrite (6, 128);
  // must be called after first analogWrite
  PWMC_ConfigureClocks (256 * 10000, 0, VARIANT_MCK);


But ....
The PWMC_ConfigureClocks method is defined in [arduino IDE location]/hardware/arduino/sam/system/libsam/include/pwmc.h.
So it is a amtel delivered method implemented in compiled code (so it is "proprietary code")
I however fail to find any documentation on  PWMC_ConfigureClocks.
pwmc.h full documentation on the method is:
Code:
*    -# Configures PWM clocks A & B to run at the given frequencies using
 *       \ref PWMC_ConfigureClocks().
The definition is
Code:
void PWMC_ConfigureClocks(uint32_t clka, uint32_t clkb, uint32_t mck ) ;
I found nothing in pwmc.h that something should be set before calling this method. The arduino code does state you should call analogwrite before the call. So maybe the code is setting the pwm frequency for all pwm pins? Can I call this multiple times with different frequencies? how do I set PWM pin 2 to 10KHz and pin 13 to 44Khz
Anyone knows a pointer to documentation of PWMC_ConfigureClocks?


I found no information on amtel nor on arduino reference page on this method.

Best regards
Jantje


14  Products / Arduino Yún / Re: Connect Leonard, Uno, Mega or general avr Arduinos to Yun on: August 01, 2014, 12:15:17 pm
Good, but I also think it needs an SD card slot. 

With a card slot, it would solve my current problem, which is that I need the features of a Mega connected to the linux side of a Yun.  The Yun would be serving the data, both live and historical, so needs an SD card for data storage.

Unfortunately, a USB storage device won't fit inside the standard box.
I agree a USB is not a replacement of a sd slot. If you have a USB device you would need a USB hub that needs power ......
This Linux shield has a SD slot and USB. Maybe this is a solution for you.
https://www.indiegogo.com/projects/arbor-linux-shield-an-openwrt-wifi-development-board-for-arduino-other-mcus

Best regards
Jantje
15  Products / Arduino Due / Re: What are the possible PWM frequencies? And how to set them. on: August 01, 2014, 12:12:22 pm
Nearly any frequency from microhertz (one cycle per 3 days, or so) to 42 MHz is possible, with millions of options in between,
@hobbified
This is very interesting information to me (and I guess many others)

So I have now
Default PWM frequency =1000 Hz (the same for all pwm pins)
frequency range  microhertz (one cycle per 3 days) to 42 MHz
PWM Pins D2-D13 (as to http://forum.arduino.cc/index.php?topic=132130.0 also pins D38 to D44

Figure out what you want, and then figure out how best to do it smiley
This is still missing. I'd like to have a easy way to get from I want this pwm frequency to: "how to do it". That is what I'd like to add to the "cheat sheet" .

This code for maple (not sure how due relates to it) has been linked to a couple of times in this thread http://forum.arduino.cc/index.php?topic=131323.15
Supposing I can use code as below to control the PWM frequency for all these pins of the due: (I don't think I can but then I'd like to know the code)
Code:

    timer.pause();
    timer.setPrescaleFactor(3);
    timer.setOverflow(4000);
    timer.refresh();
    timer.resume();
How do I get from my wanted PWM frequency (say  42 MHz as example) to the PrescaleFacor and to the Overflow value?
And how do I get from my pin number to the timer?

There are 11 (or 18) pwm pins. It can't be that hard to list the resources needed to  set the pwm frequency for those pins?

Best regards
Jantje

Pages: [1] 2 3 ... 135