Recent Posts

Pages: [1] 2 3 ... 10
1
Français / Re: Création d'un menu de choi...
Last post by Madmonkey630 - Today at 07:24 pm
OK bon bah je vais voir ça avec mon informaticien de beau frère sinon j'utiliserai la solution que tu m'as donné merci de tes lumières
2
Deutsch / Re: Fragen zum Projekt, Weizen...
Last post by Walkerman - Today at 07:23 pm
Ja denke ich auch:D. Gar keine Sensoren, alles per Zeit, dass würde schon funktionieren hängt halt viel mit ausprobieren zusammen. Was meinst du mit Steuerung? Ich steuer ja die Motoren über den Motor Shield und da kann ja auch die Geschwindigkeit regulieren. Sollte doch dann feinfühlig funktionieren können oder nicht?

Kannst du denn einen moderneren empfehlen?
Geht es auch nicht schon davor? Ich meine der Motor soll eine Gewindestange antreiben und an der Gewindestange ist eine Last von ca. 1,5kg befestigt. Reichen die angaben nicht?

Die Gewindestange wollte ich benutzen: https://www.ebay.de/itm/3D-Drucker-Frase-Spindel-Mutter-8mm-Trapezgewindespindel-T8-Messingmutter-200mm/333309689622?_trkparms=aid%3D111001%26algo%3DREC.SEED%26ao%3D1%26asc%3D40735%26meid%3D030c69df5dd34064af0c6e7a86d53058%26pid%3D100970%26rk%3D1%26rkt%3D14%26mehot%3Dnone%26sd%3D333309689622%26itm%3D333309689622%26pmt%3D1%26noa%3D1%26pg%3D2380057&_trksid=p2380057.c100970.m5481&_trkparms=pageci%3A81b9f7d1-3bb1-11ea-9ab8-74dbd18080eb%7Cparentrq%3Ac42f0ecb16f0a4b7fcb812d1ffea1774%7Ciid%3A1
3
So you probably end up having one interrupt handler and using a jump table there.
Right.
Code: [Select]
void dummy();
void isr1();
void isr2();
void isr3();

void (*jumpTable[])() = {dummy, isr1, isr2, isr3};
volatile uint8_t isrSelect = 0;

void setup() {
}

void loop() {
}

ISR(TIMER1_COMPA_vect) {
  jumpTable[isrSelect];
}

void dummy() {
}

void isr1() {
  // Do Stuff
}

void isr2() {
  // Do Differnt Stuff
}

void isr3() {
  // Do Differnt Different Stuff
}
5
i just need real time clock on display, and random train departure.

extra feature option: pin 9 for slide show of all lines, triggered by switch, with delay of 30sec for one line (case).
6
Programming Questions / switching from Uno to Mega 256...
Last post by tdg - Today at 07:22 pm
Hi,

I posted a question a month or so ago to ask if I could switch from a Uno to a Mega 2560 without changing anything.  I was told that the Mega should be more or less plug and play with no changes.  Seems that that is not quite right.  The problem centers around getting an Adafruit Data Logger Shield that to work with an Mega 2560.  I've walked part of the way through the tutorial (https://learn.adafruit.com/adafruit-data-logger-shield/using-the-real-time-clock).  I'm using the online editor rather than the IDE.  Anyway, I've found the library referenced in the tutorial and opened the example PCF8523 (I have the latest rev of the data logger shield with the PCF8523 chip on it).  When I plug in the shield to my Mega and upload the example, I get garbage on the serial monitor.  I also have an Uno, and when I plug the Datalogger into that, it seems to run the example just fine.  There must be something different about the Mega 2560 hardware compared to the Uno.  Anyone know what I need to do to make the shield work with the Mega?  I need the extra inputs on the Mega, or I would use the Uno.

Thanks!
Tim
7
What is the printed value of potValue at the point of failure?

Also, I'd be more inclined to use
Code: [Select]
map(potValue, 0, 1024, 0, 180)

And...an array.
8
It has nothing to do with Arduino but I tried PC forums and the question didn't get any reaction. So I thought a project maker forum such as this might have the users with skill set to help.

As you said I needed to find a 5V pin to connect to that provided constant voltage. I found the pin on an JT1 header that was on the motherboard but not listed in the manual. Once I had done that I worked it out as below through educated guessing.



Now I just need to wire it in parallel and hopefully it will work as expected.
9
Quote
Should I always be in no new line? When do you use which mode? What is the purpose of each?
Set the line ending as required for your program

For detecting the end of text entry, for example, an explicit line ending is useful
10
no, i am not too familiar with those, I only know of the "memcpy_P" cmd. from the context of the original code, but it did not seem to apply or would not work in my application due to ram limits.

could you give me some ideas on how to apply these instructions, or direct me somewhere i could learn how?

Thank you!
Pages: [1] 2 3 ... 10