kbr-net / sdrive-max

Arduino based Atari 8-bit Floppy Emulator with Touchscreen
http://www.kbrnet.de/projekte/sdrive-max/index.html
GNU General Public License v3.0
92 stars 23 forks source link

Supported display types #24

Closed pavelru closed 4 years ago

pavelru commented 4 years ago

Hello, I bought a display on the e-shop website https://arduino-shop.cz/arduino/1568-shield-lcd-tft-2-4-display-for-arduino-uno.html unfortunately not supported by you . I found that the following demo works on the recommendation of the e-shop https://arduino-shop.cz/docs/products/0/141/test_example_1487762760.zip. Could you include support for this type of display? Thank you very much for your time.

pavelru commented 4 years ago

Just add that the display correctly displays the screen after writing the firmware atmega328-ili9329 but after performing the display calibration, the touch control stops working. After writing the firmware version of atmega328-ili9340, the screen is upside down and mirrored. And after writing the firmware version of atmega328-ili9341eeprom_writer.hex, the screen is mirrored, and after writing sdrive.hex the display cannot be calibrated. The touch control does not work. 20191019_101104 20191019_101212 20191019_100340 20191019_100607 20191019_100659

pavelru commented 4 years ago

I will add one more clarification. I recorded the progress of writing sdrive.hex on my mobile phone and after downloading any version I will briefly flash TFT ID: 9340 ... Then I do not understand why my version of firmware atmega328-ili9340 does not work correctly :(

kbr-net commented 4 years ago

Please read https://github.com/kbr-net/sdrive-max/issues/18 and try the firmware v1.2b2 there.

pavelru commented 4 years ago

Good evening and thank you for your answer. I tried to write this version of atmega328-ili9340i firmware as well. The display is shown in the attached photos. 20191019_180436 20191019_180547

pavelru commented 4 years ago

I also run pin diagnostics see below if it helps.

Making all control and bus pins INPUT_PULLUP Typical 30k Analog pullup with corresponding pin would read low when digital is written LOW e.g. reads ~25 for 300R X direction e.g. reads ~30 for 500R Y direction

Testing : (A1, D7) = 32 Testing : (A2, D6) = 25 Diagnosing as:- YP,YM: (A1, D7) = 32 XM,XP: (A2, D6) = 25

kbr-net commented 4 years ago

Weird, this are the correct pins for ILI9329 and ILI9340. Calibration works, and then it hangs? Then the problem is not the touchscreen, i think. What happens when the Atari is powered on?

Try to start without SD-Card inserted also please.

pavelru commented 4 years ago

Hello, I enclose photos of the display and cable connection to the connector and to Arduino. The SD card is formatted by fat or fat32, and the sdrive.atr file is in the card's root. Unfortunately, nothing happens when you turn on Atari. Just growls and BASIC starts. Calibration is counterclockwise as shown in other photos. 20191020_104339 20191020_112512 20191020_104005 20191020_104016 20191020_104025 20191020_104037 20191020_104053 20191020_104104 20191020_110232 20191020_111024

kbr-net commented 4 years ago

Try with ILI9329 firmware, this looks the best, and also try to start Atari after calibration without display attached.

kbr-net commented 4 years ago

There is also no response on touch if SD-Card is out and SIO not plugged in?

pavelru commented 4 years ago

I installed the sdrive-max-v11\atmega328-ili9329 firmware and performed the steps you recommended. Even then, nothing happened. So I tried to use another SD card and sdrive.atr is loaded while Option is pressed. For some reason I don't want to work with a small 128MB SD card. Unfortunately, the touch control still does not work. But when I leave sdrive for some time and the screensaver comes up, so by touching the screen wakes up ... 20191020_140355

kbr-net commented 4 years ago

Can you send me the first 2MB raw data of the SD-Card? On Linux you can do this with: dd if=/dev/sdc of=sd.out bs=1M count=2; gzip sd.out (where /dev/sdc is your card device)

pavelru commented 4 years ago

I would send but unfortunately I do not use linux :( Is there any possibility to do this on win10?

kbr-net commented 4 years ago

Maybe there are tools for win10, but i don't know about, sorry. Use a KNOPPIX CD?

I have also released a new beta v1.2b3 right now, please try: https://github.com/kbr-net/sdrive-max/releases/download/v1.2b3/sdrive-max-v12b3.zip

pavelru commented 4 years ago

Unfortunately, the new firmware is mirrored. the touch control works very strangely. 20191020_192914 20191020_193110 20191020_193506

Tomorrow I will try to prepare an old NB with Linux and try to send the required files

kbr-net commented 4 years ago

I'm a little bit confused now, in you second post the ILI9329 looks correct, which firmware is now with the correct display?

pavelru commented 4 years ago

The last firmware I installed was beta sdrive-max-v12b3.zip

kbr-net commented 4 years ago

Sorry, my fault, please try the same file again.

pavelru commented 4 years ago

Nothing happens. I tried the latest firmware. Displays correctly and touch control works but as if for a large display. If I touch the middle of the screen at some point, I get to the file selection. But ... I sometimes get to the READY screen at the same place.

kbr-net commented 4 years ago

Can you post a picture with the values in the middle at the end of calibration again? You can initiate a recalibration by holding touch while power on.

pavelru commented 4 years ago

Good morning, I'm sending the photo. 20191021_090200

pavelru commented 4 years ago

Captured file from 128MB SD card cannot be attached.

kbr-net commented 4 years ago

Try to clear the bootblock of the problematic SD-Card, create a new partition table, and format it new. (Maybe there is a wrong geometry)

The values of the calibration looks good, don't know, why it's not working... Have made a firmware with touchpoint debug X, Y output in pixels. Left upper corner should be near 0, 0, right bottom 240, 320. Hope that helps! sdrive-max-v12b3-debug.zip

pavelru commented 4 years ago

Good evening, thank you very much for your help. I send a photo and the next one is photographed the problem, why it does not work as it should. If I press the joint a little with my finger, the touch control works. I will have to claim the display from the seller. Once again, thank you very much for your continued help. If you can send a contribution, please write. 20191021_180705 2019-10-21-18-13-44-634

kbr-net commented 4 years ago

All right, but the firmware for ILI9329i is now the correct one?

pavelru commented 4 years ago

Yes, touch control worked as far as possible. I will probably confirm tomorrow when I receive a new display.

pavelru commented 4 years ago

Hello. Today I received a new display. After connecting to arduin, start up and recalibrate works at first good. I tried to upload a version of sdrive-max-v11\atmega328-ili9329, but it does not work after calibration touch control. I returned to the version of atmega328-ili9329i attaching the picture. Thank you very much again for your time. 20191023_161917

Now, after attaching the disk image and pressing Option + Reset, it displays this message as shown. He tried 2 SD cards and it is the same for both. 20191023_164422

kbr-net commented 4 years ago

As far as i can see, you have connected the SIO power pin 10 to 5V, and also connected USB, this is no good idea, use only one power source! And then try power on by holding OPTION, RESET does not always work correctly.

pavelru commented 4 years ago

The first photo is sdrive connected to the PC and the second to the atari without additional usb power. The cable shown in the second photo charges my tablet.

SIO's connection to Arduino is here. https://github.com/kbr-net/sdrive-max/issues/24#issuecomment-544236552

kbr-net commented 4 years ago

But sdrive.atr is loading the control program? And when you select an image to slot D1: it is not loading?

pavelru commented 4 years ago

Sdrive.atr will load correctly. I select a disk image in D1 and the message appears after pressing Opt + Reset.

kbr-net commented 4 years ago

Strange, "CMD Timeout" says, the CMD-Line is pulled low, but no command is sent to the SDM. Or it is not recognized. Do you have a high-speed OS?

kbr-net commented 4 years ago

Can you see the directory of the disk image in the control program by pressing "V"? File info with "I"? (length, date, time) Long filename with "L"?

pavelru commented 4 years ago

In the control program, after pressing L and I, I see a long file name and file information. After the V label, the screen is blank, but the load indicator glows green. Press V to return to the control program.

pavelru commented 4 years ago

This will appear when sdrive.atr is loaded. 20191023_185910

kbr-net commented 4 years ago

In the control program, after pressing L and I, I see a long file name and file information. After the V label, the screen is blank, but the load indicator glows green. Press V to return to the control program.

Show me this output please, if you have selected the image, which won't boot. You can also try to view other files with the "V" key, there is a ASCII and HEX-View option too. Works it on SDRIVE.ATR?

pavelru commented 4 years ago

Hello, I'm sending a link to the video where you can see how it behaved. When I am newly downloaded BiboDos7 already works properly. The error was probably caused by copying to the SD card and disconnecting it incorrectly from the system. https://photos.app.goo.gl/g5AVPu3a7DT9qSzL9

kbr-net commented 4 years ago

Thank you, then we can close this issue, i think.