Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 06:57 02 Aug 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 : CMM2 - ST7735S - TFT Display

Author Message
Nimue

Guru

Joined: 06/08/2020
Location: United Kingdom
Posts: 420
Posted: 10:36am 15 Feb 2021
Copy link to clipboard 
Print this post

Morning (UK) all

(Yes, I've searched the forum ;-) )

Am looking to add a 160x128 panel to my CMM2 "Classroom" monitor -- now with temperature and CO2 monitoring (humidity and pressure to follow).

Having searched the forum I see reference to some CSUB code.  I am looking for some pointers to getting it up and running  -- sample "Hello world" code would be awesome if anyone has one up and running.

Cheers
Nim
Entropy is not what it used to be
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 10315
Posted: 10:54am 15 Feb 2021
Copy link to clipboard 
Print this post

The CMM2 doesn't support multiple display types - that wasn't the intent. There is a way I can think of but it will involve some serious programming on your part.

You need to connect the display to the SPI pins and connect up the three control pins.
Then you need to find the initialisation sequence for the display off the web and send the requisite commands over SPI toggling the control pins as appropriate.

The easiest way to then write to the screen is then to write to a display page in 16-bit format and then use SPI to copy the data to the display.

Would probably take me a full day to get all this properly working and I'm quite fast  
 
Nimue

Guru

Joined: 06/08/2020
Location: United Kingdom
Posts: 420
Posted: 11:16am 15 Feb 2021
Copy link to clipboard 
Print this post

Cheers @matherp

What I am attempting to create is a "box" that monitors the classroom conditions - CMM2 was my "go to" as the workflow of programming directly into the device without a PC tether makes it a more useful teaching tool (no PC distractions, more intimate "coding" experience etc)

"There is a way I can think of but it will involve some serious programming on your part."  << My coding skills are hack and slash I'm afraid ;-(

If I was to go with other MMBasic enabled devices, what would be better for this use case and where would I get such a beast?

Had my eye on the F4 that's been mentioned in the threads recently -- might mosey on down to AliExpress ;-)

Cheers
N
Entropy is not what it used to be
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 10315
Posted: 11:20am 15 Feb 2021
Copy link to clipboard 
Print this post

An F4 with the matching display would do this perfectly. The code would move with very little change and would tie up much cheaper H/W
 
Nimue

Guru

Joined: 06/08/2020
Location: United Kingdom
Posts: 420
Posted: 11:24am 15 Feb 2021
Copy link to clipboard 
Print this post

Final Q

Can we add a keyboard to the F4 and program it directly?

N
Entropy is not what it used to be
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 10315
Posted: 11:49am 15 Feb 2021
Copy link to clipboard 
Print this post

yes: a PS2 keyboard can be connected with a suitable adapter and pullup resistors
 
JohnS
Guru

Joined: 18/11/2011
Location: United Kingdom
Posts: 4044
Posted: 11:53am 15 Feb 2021
Copy link to clipboard 
Print this post

deleted, sorry.
Edited 2021-02-15 21:53 by JohnS
 
lizby
Guru

Joined: 17/05/2016
Location: United States
Posts: 3378
Posted: 01:09pm 15 Feb 2021
Copy link to clipboard 
Print this post

  Nimue said  Can we add a keyboard to the F4 and program it directly?


Here

And here
PicoMite, Armmite F4, SensorKits, MMBasic Hardware, Games, etc. on fruitoftheshed
 
Nimue

Guru

Joined: 06/08/2020
Location: United Kingdom
Posts: 420
Posted: 01:14pm 15 Feb 2021
Copy link to clipboard 
Print this post

  lizby said  
  Nimue said  Can we add a keyboard to the F4 and program it directly?


Here

And here


Cheers -- I see these posts and continually think I must be missing something -- I read them and know its possible - but not how to do it -- what to wire where etc etc.

I'll keep poking, buy the kit and experiment.

Cheers
N
Entropy is not what it used to be
 
lizby
Guru

Joined: 17/05/2016
Location: United States
Posts: 3378
Posted: 02:37pm 15 Feb 2021
Copy link to clipboard 
Print this post

  Nimue said  what to wire where etc etc.



PicoMite, Armmite F4, SensorKits, MMBasic Hardware, Games, etc. on fruitoftheshed
 
Nimue

Guru

Joined: 06/08/2020
Location: United Kingdom
Posts: 420
Posted: 02:40pm 15 Feb 2021
Copy link to clipboard 
Print this post

  lizby said  
  Nimue said  what to wire where etc etc.




Sitting in corner feeling bad now ;-(

Thank you - I was more reflecting on my ability and needed a noob 101 guide.

That I can understand.

Thank you -- most appreciated.

N
Entropy is not what it used to be
 
lizby
Guru

Joined: 17/05/2016
Location: United States
Posts: 3378
Posted: 02:46pm 15 Feb 2021
Copy link to clipboard 
Print this post

  Nimue said  . . .needed a noob 101 guide.


Don't we all. What I am not absolutely certain of in that diagram is whether we are looking at the connector from the keyboard or the connector that it plugs into. I think the connector that it plugs into, but will check with multimeter when I get my PCB PS/2 sockets.
PicoMite, Armmite F4, SensorKits, MMBasic Hardware, Games, etc. on fruitoftheshed
 
TassyJim

Guru

Joined: 07/08/2011
Location: Australia
Posts: 6283
Posted: 08:28pm 15 Feb 2021
Copy link to clipboard 
Print this post


VK7JH
MMedit
 
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