Recent Posts

Pages: [1] 2 3 ... 10
Two things come to my mind.
1. I2C bus needs pull up resistors. They pull the voltage of SDA, SCL up to +5V or 3.3Volts. Do you your pull up resistors happen to be on the powered down board. They wont work there.
Problem solved - I placed pull ups on all slaves (2 slaves in this case)
Now the master can still operate if a slave goes down and detect the failure. Thanks for the help.
Thanks again for your reply,  am trying to define different approaches to multiservo operations other than pca9685 board.   
Sensors / Re: High Voltage AC Sensor To ...
Last post by Mk1_Oz - Today at 10:47 am
Been playing with circuits all arvo.  Is it possible to have a non-inverting asymmetric schmitt trigger using an op-amp?  I cannot find a reference to this, only to an inverting asymmetric.
Deutsch / Re: DEUTSCH Fibonacci Rechner ...
Last post by ArduFE - Today at 10:47 am
Ja, die Teensy können mit double rechnen, aber

1) die FPU beim Teensy 3.5 und 3.6 kann nur float. (Eine FPU für double wird es wohl beim zukünftigen Teensy 4 mit Cortex M7 geben.)

2) beim Teensy ist standardmäßig der Compilerschalter gesetzt, der dafür sorgt das Fliesskommakonstanten im Quelltext als float betrachtet werden. Nützt also nix, wenn man ganz tolle lange Kommazahlen in seinen Quelltext schreibt. In obigem Code wird allerdings von long konvertiert, deshalb geht das.

3) Auf dem Teensy sollten auch int64_t und uint64_t zur Verfügung stehen. Für Fibonaccizahlen sicher besser geeignet.
Deutsch / Re: funtion ausfürhung Fehler
Last post by michael_x - Today at 10:45 am
was kann ich verbessern?
Hab nur mal die erste Zeile gelesen:
byte ledPin = 4;                  // LED liegt am (digitalen) Pin 13
Fragt sich nur, wie viele Fehler das sind ;)

const byte ledPin = LED_BUILTIN; // Beim Uno  Pin13

Generell schreibe ich an den Anfang eines Sketches gern, welche Pins wie belegt sind (Sowie eine kurze Beschreibung, was der Sketch macht bzw. machen sollte), um eine Übersicht zu haben.
Die Pin-Belegung als echte C++ Definition hat den Vorteil, dass Beschreibung und Wirklichkeit nicht so leicht widersprüchlich sind.

Aber mit byte statt int ist da schon viel Gutes drin ;)
Displays / Re: MCUFRIEND_kbv Library for ...
Last post by LiFu99 - Today at 10:43 am
Hi there,
I've got a 2.8" touchscreen.  Before using the MCUFRIEND_kbv library, I couldn't get it to work at all, but since using it, I have been very pleased to get it to start to work.

However, the touchscreen is apparently 'mirrored' down the middle, so that with the display in a portrait position, when I move the stylus up the middle (when using Adafruit tftpaint sketch but with MCUFRIEND_kbv library as opposed to the Adafruit_TFTLCD library), it draws a line downwards.

I have tried to resolve this in 2 ways:

-In the sketch I have tried to change the pin configuration:
The default is:
#define YP A3
#define XM A2 
#define YM 9
#define XP 8   
producing the result as described above.

Modifying it:
#define YP A2 
#define XM A3
#define YM 8
#define XP 9 
moving the stylus horizontally across the display, produces a vertical line and vice versa!

Defining pins A1, A2, 6 and 7 means that the touchscreen does not work at all, as I have seen this does work for other users.

I have also tried the default...
pinMode(XM, OUTPUT);
pinMode(YP, OUTPUT);

...changing to:
pinMode(XP, OUTPUT);
pinMode(YM, OUTPUT);
but that doesn't work either.

When I run the tftpaint sketch, the serial monitor says that I am using the ILI9341 driver, but the hardware documentation I have for the touchscreen says that it uses a UC8230s driver, so I am really rather bamboozled!

Sorry its such a long post; I'd be interested to know if anybody else has had any similar issues and have managed to get it working :-)

All the best,
thanks for your reply @kenwood120s.  I see the code in the page example of MegaServo doesn't include the sweep function, but downloading the library from arduino IDE and working with the example included in folder, it doesn't include the sweep function.   The library file doesn't include a sweep function though..
As far as I know, there is no sweep() function with the Servo library, just the sweep sketch in the servo library examples. Of course it's possible that someone wrote a sweep() function but if so, who and where I have no idea.

I don't think you should be digging in the MegaServo library area: it said there that it became the Servo library, which is presumably the currently supported one.
Sensors / Re: Humidity Sensor Working en...
Last post by GrenHeim0 - Today at 10:42 am
Thanks :)
Storage / Re: SD card initialization fai...
Last post by alexandrevelco - Today at 10:39 am
Guys, I found the solution !

In fact I referred to this Arduino Mini pinout : and it seems that MISO and MOSI are inverted on this pinout.

I think it is like Arduino Uno :

Pin 13 : SCK
Pin 12 : MISO (and not MOSI)
Pin 11 : MOSO (and not MISO)
Pin 10 : SS

If it is not that, maybe what is wrote on my SD card module is false.

If anyone has a mini and can confim the MISO/MOSI Pin because it is strange :)
Deutsch / Re: DEUTSCH Fibonacci Rechner ...
Last post by agmue - Today at 10:36 am
Abhängig von Deinem Projekt könnte auch ein Teensy 3.5 "120 MHz ARM Cortex-M4 with Floating Point Unit" hilfreich sein. Praktische Erfahrungen habe ich aber damit leider noch nicht.

Mein Teensy 3.2 "32 bit ARM Cortex-M4 72 MHz CPU" spuckt dies aus:
Fibonacci Zahlen mit Kontrollfunktion bis 100
Nr.1  Ergebnis plausibel Ist-Wert = 1.00
Nr.2  Ergebnis plausibel Ist-Wert = 2.00
Nr.3  Ergebnis plausibel Ist-Wert = 3.00
Nr.4  Ergebnis plausibel Ist-Wert = 5.00
Nr.5  Ergebnis plausibel Ist-Wert = 8.00
Nr.6  Ergebnis plausibel Ist-Wert = 13.00
Nr.7  Ergebnis plausibel Ist-Wert = 21.00
Nr.8  Ergebnis plausibel Ist-Wert = 34.00
Nr.9  Ergebnis plausibel Ist-Wert = 55.00
Nr.10  Ergebnis plausibel Ist-Wert = 89.00
Nr.11  Ergebnis plausibel Ist-Wert = 144.00
Nr.12  Ergebnis plausibel Ist-Wert = 233.00
Nr.13  Ergebnis plausibel Ist-Wert = 377.00
Nr.14  Ergebnis plausibel Ist-Wert = 610.00
Nr.15  Ergebnis plausibel Ist-Wert = 987.00
Nr.16  Ergebnis plausibel Ist-Wert = 1597.00
Nr.17  Ergebnis plausibel Ist-Wert = 2584.00
Nr.18  Ergebnis plausibel Ist-Wert = 4181.00
Nr.19  Ergebnis plausibel Ist-Wert = 6765.00
Nr.20  Ergebnis plausibel Ist-Wert = 10946.00
Nr.21  Ergebnis plausibel Ist-Wert = 17711.00
Nr.22  Ergebnis plausibel Ist-Wert = 28657.00
Nr.23  Ergebnis plausibel Ist-Wert = 46368.00
Nr.24  Ergebnis plausibel Ist-Wert = 75025.00
Nr.25  Ergebnis plausibel Ist-Wert = 121393.00
Nr.26  Ergebnis plausibel Ist-Wert = 196418.00
Nr.27  Ergebnis plausibel Ist-Wert = 317811.00
Nr.28  Ergebnis plausibel Ist-Wert = 514229.00
Nr.29  Ergebnis plausibel Ist-Wert = 832040.00
Nr.30  Ergebnis plausibel Ist-Wert = 1346269.00
Nr.31  Ergebnis plausibel Ist-Wert = 2178309.00
Nr.32  Ergebnis plausibel Ist-Wert = 3524578.00
Nr.33  Ergebnis plausibel Ist-Wert = 5702887.00
Nr.34  Ergebnis plausibel Ist-Wert = 9227465.00
Nr.35  Ergebnis plausibel Ist-Wert = 14930352.00
Nr.36  Ergebnis plausibel Ist-Wert = 24157817.00
Nr.37  Ergebnis plausibel Ist-Wert = 39088169.00
Nr.38  Ergebnis plausibel Ist-Wert = 63245986.00
Nr.39  Ergebnis plausibel Ist-Wert = 102334155.00
Nr.40  Ergebnis plausibel Ist-Wert = 165580141.00
Nr.41  Ergebnis plausibel Ist-Wert = 267914296.00
Nr.42  Ergebnis plausibel Ist-Wert = 433494437.00
Nr.43  Ergebnis plausibel Ist-Wert = 701408733.00
Nr.44  Ergebnis plausibel Ist-Wert = 1134903170.00
Nr.45  Ergebnis plausibel Ist-Wert = 1836311903.00
Nr.46  Ergebnis plausibel Ist-Wert = 2971215073.00
Nr.47  Ergebnis plausibel Ist-Wert = 4294967295.//
Nr.48  Ergebnis plausibel Ist-Wert = 4294967295.//
Nr.49  Ergebnis plausibel Ist-Wert = 4294967295.//
Pages: [1] 2 3 ... 10