Recent Posts

Pages: [1] 2 3 ... 10
1
Deutsch / Re: Nema oder vergleichbaren S...
Last post by combie - Today at 10:22 pm
Billig soll es sein?
Dann ebay("V3.0 Engraver CNC Shield Board+UNO R3+A4988 Stepper Driver Modul Kit Für Arduino")
2
Project Guidance / Re: Simple multi-tasking
Last post by Paul__B - Today at 10:20 pm
So do I.  Very useful in fact, where that is all the current you require.

Naturally, the one that comes with the phone will be specified to closely match the phone.  2.1 A is an iPad. I was referring to the "aftermarket" ones to charge your "everything", presuming that is phone plus iPad plus Fitbit etc.   :smiley-lol:

Then they have those charger "racks" to lodge the whole family's devices.
3
Deutsch / Re: bytes in HEX zu int (LSB u...
Last post by Rothammel - Today at 10:18 pm
weiß ich auch nicht, das Ding sitzt im Rücklauf von unserem Holzvergaser, aber für dich war ich gerade noch mal guggen gegangen, die Pumpe steht und der Stand ist 104,3kWh und hier der dump:

0xE5 0x68 0x71 0x71 0x68 0x08 0x00 0x72 0x97 0x68 0x80 0x06 0x65 0x32 0x10 0x0D 0x62 0x00 0x00 0x00 0x0C 0x05 0x43 0x10 0x00 0x00 0x0B 0x22 0x81 0x42 0x05 0x04 0x6D 0x26 0x16 0x76 0x21 0x32 0x6C 0x00 0x00 0x0C 0x78 0x97 0x68
0x80 0x06 0x06 0xFD 0x0C 0xF2 0x03 0x01 0x00 0xF7 0x01 0x0D 0xFD 0x0B 0x05 0x31 0x32 0x4E 0x46 0x57 0x01 0xFD 0x0E 0x00 0x4C 0x05 0xBB 0xBB 0xBB 0xBB 0x42 0x6C 0x5F 0x2C 0x8C 0x10 0x05 0x14 0x00 0x00 0x00 0xCC 0x10 0x05 0x00
0x00 0x00 0x00 0xC2 0x10 0x6C 0x5F 0x2C 0x0F 0x37 0xFD 0x17 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x02 0x7A 0x25 0x02 0x02 0x78 0x25 0x02 0x3D 0x16
4
Displays / ILI9341 on ESP32
Last post by wokcz - Today at 10:18 pm
First, I apologize if some things I say are wrong or make no sense, I am pretty new to this.

A friend gave me an ESP-WROOM-32 board (38 pins, with CH340G), and an ILI9341 3.2'' tft lcd (TFT_320QDT_9341, 40 pins). At first I thought it was impossible to connect it to the esp32 board since it needs so many pins, but I read that these type of displays can be used used in 8 bits mode by moving a resistor in the lcd flex cable. Then it would use only 8 data lines, making it possible to connect to the esp32.

Here are some pics of the boards (click to enlarge):







This is the pinout reference I am using:



The lcd flex cable has R2 populate and R1 empty, I don't know which mode this is since my flex doesn't have the 8/16 numbers printed like some others I saw online, and I found some say R1 populated is 8 bit and other said R2 populated is 8 bit, so I decided to just try it as is before touching that.

I installed espressif/arduino-esp32 and selected the board FireBeetle-ESP32 since it seems to match the pins on my board. I tested a simple led blink code on random pins to confirm that and everything worked fine. Then I installed Bodmer/TFT_eSPI because it was the only one I found for ESP32 that I could easily edit the pinout.

I edited User_Setup_Select.h, commented "#include <User_Setup.h>" and uncommented "#include <User_Setups/Setup14_ILI9341_Parallel.h>", first I tried the default pinout from Setup14_ILI9341_Parallel.h:

LCDESP32
VCC
3v3

GND
GND

LEDA
3v3

CS
33

DC
15

REST
32

WR
4

RD
2

DB8
12

DB9
13

DB10
26

DB11
25

DB12
17

DB13
16

DB14
27

DB15
14



Also tried this pinout I found on some github comment (edited Setup14_ILI9341_Parallel.h after rewiring):

LCDESP32
VCC
3v3

GND
GND

LEDA
3v3

CS
33

DC
15

REST
19

WR
32

RD
18

DB8
27

DB9
12

DB10
13

DB11
14

DB12
16

DB13
17

DB14
25

DB15
26



I uploaded the UTFT_demo.ino sketch, but all I got was a white screen. Tried using DB0-DB8 too, tested different upload speed and flash frequency, same white screen. When uploading the sketch, I get this on the serial monitor:



I've no idea what it means (switching baud rates doesn't "decode" the first part either). Rebooting the board doesn't clear the serial monitor and show that again, like other simple sketch do. So I added a printf() on setup() and another on loop() and they never show up on the serial monitor. (I also downloaded MCUFRIEND_kbv and tried the LCD_ID_reg sketch, but got the same issue). I removed most of the code of the demo like this:

Code: [Select]
#include "SPI.h"
#include "TFT_eSPI.h"

#define TFT_GREY 0x7BEF

TFT_eSPI myGLCD = TFT_eSPI();

unsigned long runTime = 0;
void setup()
{
// Setup the LCD
 //myGLCD.init();
 //myGLCD.setRotation(1);
 printf("setup!\n");
}

void loop()
{
 printf("loop!\n");
 //myGLCD.fillScreen(TFT_BLACK);
 delay(1000);
}


And the printf only works when all calls to myGLCD are commented like in the above code. If I uncomment myGLCD.init(), the printfs stop showing up, only shows whats in the last image. It does this regardless if the lcd is connected or not to the board.


Should I go ahead and try the R1-R2 swap thing in the lcd flex? Or what else could I try before doing that? What worries me is that printf thing, it's like the program is crashing or something.
5
In the 6.5 years since that was written, stepper drivers have become ubiquitous. Look at using independent driver chips. I expect that the cost saving of using triacs would be just a few cents now.
6
It is so urgent that you are going to ask us to help with code but not show the code you want help with.  Does that make sense to you?  If it is urgent, then don't make us ask for details.  Share them up front. 

Go read the How to use this forum post that can be found at the top of any of the message boards.  That will be your first step towards fast help.

You'll have to make some record of when you ran the function.  That could be saving a time stamp in EEPROM or an SD card or whatever.  Since I don't know anything about your particular project all I can offer is that sort of general advice. 
7
Displays / Re: LCD brightness pin
Last post by bperrybap - Today at 10:15 pm
...  I just killed that display.
That certainly is possible, if you were guessing how to wire up the device.

If you are trying to re-create a project you found online and it had a wiring diagram, it should have shown what type of LCD device was needed and should have shown how to wire it up.

You still have not provided enough information to get meaningful advice.

--- bill

8
Read about <code> tags, they will help.
9
Français / Re: Interaction probable entr...
Last post by fr - Today at 10:13 pm
Après réflexions et essais  il semble que l'ajout de U8G2.begin(); avant chaque appel de l'affichage corrige
Il faut que je teste plus précisément si un SD.begin(D1) est aussi nécessaire mais il semble que non

A suivre...

Je reviendrais mettre résolu si cela se confirme.

Merci Cbrandt !
10
Programming Questions / Re: I want beautiful effects
Last post by marco_c - Today at 10:13 pm
The program you are listing is one of the example programs from the library. If you have not made any changes it should work. What is your question? What is not working?
Pages: [1] 2 3 ... 10