Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 15:15 21 Nov 2025 Privacy Policy
Jump to

Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.

Forum Index : Microcontroller and PC projects : ssd1306

     Page 3 of 3    
Author Message
stanleyella

Guru

Joined: 25/06/2022
Location: United Kingdom
Posts: 2681
Posted: 03:27pm 28 Aug 2022
Copy link to clipboard 
Print this post

> option list
OPTION SYSTEM I2C GP8,GP9
OPTION LCDPANEL SSD1306I2C, LANDSCAPE
>
> print mm.devices,mm.ver
0       5.0704
>
It was a faulty ssd1306 it seems. I did try all suggestions but mik's no pullup and run ssd from 3.3V worked.
If he was fed up think what I felt like... get another hobby stan :)
 
stanleyella

Guru

Joined: 25/06/2022
Location: United Kingdom
Posts: 2681
Posted: 03:41pm 28 Aug 2022
Copy link to clipboard 
Print this post

Sorry I shared flogging a dead horse. Both displays were working or I would have binned it. Maybe they are like batteries.
It has taught me not to assume things and given me more confidence to try other i2c devices.  I can hear the forum say arghhh no! Thanks for help with the display guys.
 
Mixtel90

Guru

Joined: 05/10/2019
Location: United Kingdom
Posts: 8304
Posted: 03:50pm 28 Aug 2022
Copy link to clipboard 
Print this post

Glad it's working. :)

One of the problems you can get is cheap breadboards. I've learned from experience that once a Pico is plugged in don't be tempted to take it out to use the board for something else. The pins sometimes stretch the cheap and nasty breadboard connectors enough to prevent them closing onto thin wires in the future - and you can't tell it's happened.

Another problem can be bad crimps on the Dupont connector leads. Impossible to spot sometimes. A test meter (or continuity tester of some sort) is your friend here.

I like these little displays. Cheap enough to build into something just as a debugging aid so that you don't have to plug a laptop or something in as a console. More flexible than a few LEDs and less pins. :)
Edited 2022-08-29 01:55 by Mixtel90
Mick

Zilog Inside! nascom.info for Nascom & Gemini
Preliminary MMBasic docs & my PCB designs
 
lizby
Guru

Joined: 17/05/2016
Location: United States
Posts: 3481
Posted: 04:20pm 28 Aug 2022
Copy link to clipboard 
Print this post

Glad you got it working. You left the "$" off of mm.devices$, otherwise it would have given you the name of the device--"RP2040 PicoMite" for the non-VGA picomite, "PicoMiteVGA" for the VGA version of the firmware. Early on, this would have provided the clue that you were not using the appropriate firmware for the I2C display.
PicoMite, Armmite F4, SensorKits, MMBasic Hardware, Games, etc. on fruitoftheshed
 
stanleyella

Guru

Joined: 25/06/2022
Location: United Kingdom
Posts: 2681
Posted: 04:30pm 28 Aug 2022
Copy link to clipboard 
Print this post

  Mixtel90 said  Glad it's working. :)

One of the problems you can get is cheap breadboards. I've learned from experience that once a Pico is plugged in don't be tempted to take it out to use the board for something else. The pins sometimes stretch the cheap and nasty breadboard connectors enough to prevent them closing onto thin wires in the future - and you can't tell it's happened.

Another problem can be bad crimps on the Dupont connector leads. Impossible to spot sometimes. A test meter (or continuity tester of some sort) is your friend here.

I like these little displays. Cheap enough to build into something just as a debugging aid so that you don't have to plug a laptop or something in as a console. More flexible than a few LEDs and less pins. :)


I agree and now will take nothing for granted.
I was always sceptical about electrolytic caps and always measured their esr.. they are like batteries in that they fail.

There used to be alternatives to perforated strip board/veroboard, had pads, do not see that now.
Breadboard is quick but not electrically sound.
I test the jumper leads now!

The display is neat. How does it work? I made line code on picaxe with ssd1306 but gcb uses a 1k buffer so some pics not enough ram. How does mmbasic use it please? If that is off thread please ignore.
 
stanleyella

Guru

Joined: 25/06/2022
Location: United Kingdom
Posts: 2681
Posted: 04:46pm 28 Aug 2022
Copy link to clipboard 
Print this post

  lizby said  Glad you got it working. You left the "$" off of mm.devices$, otherwise it would have given you the name of the device--"RP2040 PicoMite" for the non-VGA picomite, "PicoMiteVGA" for the VGA version of the firmware. Early on, this would have provided the clue that you were not using the appropriate firmware for the I2C display.


> print mm.device$,mm.ver
PicoMite         5.0704

? is print
teraterm is still new to me but learning. It is not optional. Everyone else seems happy using it.
 
Mixtel90

Guru

Joined: 05/10/2019
Location: United Kingdom
Posts: 8304
Posted: 04:56pm 28 Aug 2022
Copy link to clipboard 
Print this post

You can get perf board with individual pads for each hole very easily on ebay. You can link the pads with fine wire or solder blobs. You used to be able to get it with short strips of 3 holes, but I've not seen that for ages - and it was a pig to work with. You can get perf board with the same strips as breadboards now, in the same sizes. I've not used them myself.

Tera Term is just a terminal. It sends characters that you type and displays what comes back. It sets up what happens when you press the Enter key (CR, LF or both). It also does a similar thing to get the display right when one or more of those characters is returned. It's not interested in the programming or editing process at all, it's just a "pipe" for characters.
Edited 2022-08-29 03:03 by Mixtel90
Mick

Zilog Inside! nascom.info for Nascom & Gemini
Preliminary MMBasic docs & my PCB designs
 
stanleyella

Guru

Joined: 25/06/2022
Location: United Kingdom
Posts: 2681
Posted: 05:04pm 28 Aug 2022
Copy link to clipboard 
Print this post

  phil99 said  To see if your display is correctly connected to System I2C load and run this little program.

Print "System I2C Address Scanner"
' Prep table
Print "     0  1  2  3  4  5  6  7  8  9  A  B  C  D  E  F"
' loop col/row
For y=0 To 7
Print Hex$(y,2);": ";
For x=0 To 15
 addr = y*16+x               ' calc address
 I2C write addr, 0, 1, &H00  ' write zerp to that adress
 If MM.I2C=0 Then            ' check for errors
   Print Hex$(addr,2);" ";   ' found one!
 Else
  Print "-- ";               ' nothing here..
 EndIf
Next x
Print
Next y
Print MM.DEVICE$, MM.VER


The output should look like this, but showing a different address. This is for two other devices sharing System I2C with addresses &H50 and &H68

System I2C Address Scanner
   0  1  2  3  4  5  6  7  8  9  A  B  C  D  E  F
00: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
01: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
02: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
03: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
04: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
05: 50 -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
06: -- -- -- -- -- -- -- -- 68 -- -- -- -- -- -- --
07: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
>



thank you phil... on a working display I got
> RUN
System I2C Address Scanner
    0  1  2  3  4  5  6  7  8  9  A  B  C  D  E  F
00: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
01: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
02: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
03: -- -- -- -- -- -- -- -- -- -- -- -- 3C -- -- --
04: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
05: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
06: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
07: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
PicoMite         5.0704
>
Nice one.
Nothing works on a duff display.
 
     Page 3 of 3    
Print this page


To reply to this topic, you need to log in.

The Back Shed's forum code is written, and hosted, in Australia.
© JAQ Software 2025