Home
JAQForum Ver 20.06
Log In or Join  
Active Topics
Local Time 20:40 02 May 2024 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 : PicoMite - composite video output

     Page 2 of 4    
Author Message
Nimue

Guru

Joined: 06/08/2020
Location: United Kingdom
Posts: 367
Posted: 02:04pm 15 Aug 2022
Copy link to clipboard 
Print this post

  thwill said  [ASIDE]
If you are using PicoMites via serial terminal in schools then I invite you to take a look at "kingdom_pico.bas" here: https://github.com/thwill1000/cmm2-kingdom. If you have the background I believe you to have then you may appreciate that after almost 40 years things have come full-circle.
[/ASIDE]

Best wishes,

Tom



I suspect I know what that is before I even look at it -- many many a rainy lunchtime playing that.....

N
Entropy is not what it used to be
 
Nimue

Guru

Joined: 06/08/2020
Location: United Kingdom
Posts: 367
Posted: 02:06pm 15 Aug 2022
Copy link to clipboard 
Print this post

  Mixtel90 said  I've never even seen a Chromebook, but is this of interest?
Serial Term


I tried Serial Term and it "just didn't work" on the Chromebooks I had access to.  It seemed to suffer from the "connect OK, but screens just dont update" kind of issue. A job for tonight.

N
Entropy is not what it used to be
 
Volhout
Guru

Joined: 05/03/2018
Location: Netherlands
Posts: 3551
Posted: 02:13pm 15 Aug 2022
Copy link to clipboard 
Print this post

  matherp said  The AD724 handles PAL or NTSC depending on the Xtal used and position of a jumper.
The chip is now expensive from the likes of RS/Mouser (18GBP) but is available from China at cGBP2.
Nimue, if it would definitely be used in schools I'd be happy to do a simple PCB layout for a convertor motherboard.


You would have to run the VGA at 50Hz though. And interlace the video lines ? Or does the AD724 skip the odd lines in the odd frame, and even lines in the even frame of a progressive scan VGA signal ?
PicomiteVGA PETSCII ROBOTS
 
Volhout
Guru

Joined: 05/03/2018
Location: Netherlands
Posts: 3551
Posted: 02:17pm 15 Aug 2022
Copy link to clipboard 
Print this post

@Nimue,

Is your focus on introducing hardware (picomite / picomiteVGA) so kids can play with LED's and stuff ? Or are you focussed on introducing BASIC (MMBasic) into schools ?

When the focus is on MMBasic, you could have a lower entry level with MMB4W (MMBasic for Windows). Simply install on a W10 PC and you are done. Including the graphics capabilities of the higher end CMM2 machine.

And that would also work on a chromebook (gadgetjack response) see this thread:
https://www.thebackshed.com/forum/ViewTopic.php?FID=16&TID=15076#190177


Volhout
Edited 2022-08-16 00:20 by Volhout
PicomiteVGA PETSCII ROBOTS
 
Nimue

Guru

Joined: 06/08/2020
Location: United Kingdom
Posts: 367
Posted: 02:28pm 15 Aug 2022
Copy link to clipboard 
Print this post

  Volhout said  @Nimue,

Is your focus on introducing hardware (picomite / picomiteVGA) so kids can play with LED's and stuff ? Or are you focussed on introducing BASIC (MMBasic) into schools ?

When the focus is on MMBasic, you could have a lower entry level with MMB4W (MMBasic for Windows). Simply install on a W10 PC and you are done. Including the graphics capabilities of the higher end CMM2 machine.

And that would also work on a chromebook (gadgetjack response) see this thread:
https://www.thebackshed.com/forum/ViewTopic.php?FID=16&TID=15076#190177


Volhout


It's neither and both - sorry to be vague.  Let me explain.

The new curriculum here in Wales has made aspects of computer science - mandatory for all school children from this September.  The details are complex, but for primary teachers this means they must be able to program in Scratch and then move to Python (or other - MMBasic).  They must also couple this coding with accessing physical hardware - control LEDs, read temperature sensors etc -- culminating with the vague statment of "design with purpose" which we (the advisors) are interpreting as design in hardware and code something that will turn on a fan when the temp is above X and its night time.

All the above is a perfect use case for PicoMite and MMBasic.   It can be done in Python, but that involves coding on a PC and "sending" the code to the Pi.  What sells the PicoMite to schools is that to them (using serial) it is like the code is already on the Pi  -- they can even see a file listing.

I have just fired up a Chromebook and managed to get an acceptable use for Serial Term -- the only things not functioning are the VT100 colours and the backspace in Chromebook needs CTRL-Backsapce to function.   That and the Function keys dont exist on Chromebook -- but you can tweak that one.

N
Entropy is not what it used to be
 
Nimue

Guru

Joined: 06/08/2020
Location: United Kingdom
Posts: 367
Posted: 02:31pm 15 Aug 2022
Copy link to clipboard 
Print this post

OPTION COLOURCODE ON   -- RTFM ;-)
Entropy is not what it used to be
 
Mixtel90

Guru

Joined: 05/10/2019
Location: United Kingdom
Posts: 5735
Posted: 02:39pm 15 Aug 2022
Copy link to clipboard 
Print this post

You may find that the first 8 or 16 VT100 colour codes work, but not the extended ones. There are a couple of different escape code sequences for colours.

For foreground colours   ESC[..m    may work, where .. is:
30 - black
31 - red
32 - green
33 - yellow
34 - blue
35 - magenta
36 - cyan
37 - white
90 - grey
Mick

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

Guru

Joined: 06/08/2020
Location: United Kingdom
Posts: 367
Posted: 02:47pm 15 Aug 2022
Copy link to clipboard 
Print this post

Thanks all -- getting there.

Now to fix the need for CTRL-backspace --- must be sending the wrong ESC somehow.

N
Entropy is not what it used to be
 
lizby
Guru

Joined: 17/05/2016
Location: United States
Posts: 3016
Posted: 03:00pm 15 Aug 2022
Copy link to clipboard 
Print this post

  Nimue said  I have just fired up a Chromebook and managed to get an acceptable use for Serial Term


With Serial Term installed, I plugged in a PicoMite, clicked the 3 bars, selected "Pico (/dev/ttyACM0), set baudrate, data bits, parity, and stop bits, and clicked to get the "Connected" icon and text.

And I have the ">" prompt and a response to PRINT "Hello".

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

Guru

Joined: 06/08/2020
Location: United Kingdom
Posts: 367
Posted: 03:02pm 15 Aug 2022
Copy link to clipboard 
Print this post

  lizby said  
  Nimue said  I have just fired up a Chromebook and managed to get an acceptable use for Serial Term


With Serial Term installed, I plugged in a PicoMite, clicked the 3 bars, selected "Pico (/dev/ttyACM0), set baudrate, data bits, parity, and stop bits, and clicked to get the "Connected" icon and text.

And I have the ">" prompt and a response to PRINT "Hello".

Thanks.


 

Does your backspace function as expected -- I seem to need CTRL-Backspace -- seems to be a know thing in Chromebooks that use the underlying hterm (or something like that).

N
Entropy is not what it used to be
 
lizby
Guru

Joined: 17/05/2016
Location: United States
Posts: 3016
Posted: 03:12pm 15 Aug 2022
Copy link to clipboard 
Print this post

Following your suggestion, I used Ctrl-Backspace (having previously found that Backspace is Delete in other apps).

Oddly, that backspaces correctly on the screen, but the PRINT statement still shows the backspaced character.

Print "Helllo" with a backspace after the 3rd "l" prints "Helll o".
PicoMite, Armmite F4, SensorKits, MMBasic Hardware, Games, etc. on fruitoftheshed
 
Nimue

Guru

Joined: 06/08/2020
Location: United Kingdom
Posts: 367
Posted: 03:17pm 15 Aug 2022
Copy link to clipboard 
Print this post

  lizby said  Following your suggestion, I used Ctrl-Backspace (having previously found that Backspace is Delete in other apps).

Oddly, that backspaces correctly on the screen, but the PRINT statement still shows the backspaced character.

Print "Helllo" with a backspace after the 3rd "l" prints "Helll o".


I dont seem to get that, just need CTRL-Backspace.

I'm using 56k baud..

N
Entropy is not what it used to be
 
thwill

Guru

Joined: 16/09/2019
Location: United Kingdom
Posts: 3848
Posted: 03:37pm 15 Aug 2022
Copy link to clipboard 
Print this post

For the benefit of future visitors can I suggest starting a new thread specifically about the use of ChromeOS as a serial terminal.

Best wishes,

Tom
Game*Mite, CMM2 Welcome Tape, Creaky old text adventures
 
lizby
Guru

Joined: 17/05/2016
Location: United States
Posts: 3016
Posted: 03:49pm 15 Aug 2022
Copy link to clipboard 
Print this post

Mick--any interest in adding that AD724 composite circuit to your PicoStick instead of the 15-pin socket?



~
Edited 2022-08-16 01:52 by lizby
PicoMite, Armmite F4, SensorKits, MMBasic Hardware, Games, etc. on fruitoftheshed
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 8592
Posted: 03:53pm 15 Aug 2022
Copy link to clipboard 
Print this post

  Quote  Mick--any interest in adding that AD724 composite circuit to your PicoStick instead of the 15-pin socket?


Please don't - it does need firmware changes to make it work at the right frequency. Would do it for school use but not as a "might be nice-to-have"
Edited 2022-08-16 02:18 by matherp
 
Nimue

Guru

Joined: 06/08/2020
Location: United Kingdom
Posts: 367
Posted: 05:06pm 15 Aug 2022
Copy link to clipboard 
Print this post

  matherp said  
  Quote  Mick--any interest in adding that AD724 composite circuit to your PicoStick instead of the 15-pin socket?


Please don't - it does need firmware changes to make it work at the right frequency. Would do it for school use but not as a "might be nice-to-have"


I cant do the request justice - so even though I raised this, not worth the time / effort for me --- in my naivety I thought it would be a few timing tweaks and a couple of resistors.

Sorry for the noise.

N
Entropy is not what it used to be
 
Mixtel90

Guru

Joined: 05/10/2019
Location: United Kingdom
Posts: 5735
Posted: 05:20pm 15 Aug 2022
Copy link to clipboard 
Print this post

I'll leave it alone unless there's firmware support. There wouldn't be any point.
Mick

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

Guru

Joined: 31/03/2022
Location: United States
Posts: 328
Posted: 10:21pm 15 Aug 2022
Copy link to clipboard 
Print this post

  Nimue said  .......I think the PicoMite would be a "Microbit killer" (are you sensing my dislike there?)  -- that or MMBasic for the Microbit......


Plese let me Preface this by saying, I'm just an Unruly Colonist, If the Picomite is properly Evangelized it could very well be the Arduino Killer YES, But as long as there is a Labor Government and the Geniuses at The BBC, Poor little British Boy and Girls will be tortured with the Microbit and Useless "code editors" like Scratch and Microsoft Make Code! I have a Private conspiracy theory About the Evil Plans of the BBC and their "Accidental" Bliss Inducing Shows like the Royle  Family, Shameless, Faulty Towers, Dave Allen, and anything with Frankie Howard to suck us in to their Evil plans Only to Quickly Kill them to torture us for 50+ Years with Coronation Street and BBC 1
I turned the volume on the monitor to max and could hear sound. Thanks Stanleyella
 
phil99

Guru

Joined: 11/02/2018
Location: Australia
Posts: 1790
Posted: 11:59pm 15 Aug 2022
Copy link to clipboard 
Print this post

The 50Hz / 60 Hz issue may not be such a problem.
Most screens new enough to have HDMI, VGA and Composite input are smart enough to sense and adapt to 50 or 60Hz composite input as well as PAL / NTSC (by detecting the colour carrier frequency).

Here I haven't seen a TV made in the last decade or two that can't do this.
They are made for the whole world market.

Edit
Going senile. Forgot about line interlacing, composite uses it but the PicoMiteVGA probably uses progressive scanning.
It is possible that some screens could detect it and adjust, but you need every one to work.

An external VGA to Composite converter would need a frame buffer to do this. I think the chip shown above needs an interlaced input, which a computer can provide through the graphics settings.

I imagine it would be a lot of work to change the firmware to get the odd lines on one field and even lines on the next to make a 25 or 30Hz frame rate.
And if memory serves, to get the two fields to mesh into a frame the first field needs to start and end halfway through its first and last lines. Otherwise they just overlap.

This was all done with just a couple of valves but now needs a chip with tens of thousands of transistors!

Edit 2
From AD724 the data sheet.
"Displaying VGA Output on a TV
The AD724 can be used to convert the analog RGB output from a
personal computer’s VGA card to the NTSC or PAL television
standards. To accomplish this it is important to understand that
the AD724 requires interlaced RGB video and clock rates that
are consistent with those required by the television standards. In
most computers the default output is a noninterlaced RGB
signal at a frame rate higher than used by either NTSC or PAL.
Most VGA controllers support a wide variety of output modes
that are controlled by altering the contents of internal registers.
It is best to consult with the VGA controller manufacturer to
determine the exact configuration required to provide an interlaced output at 60 Hz (50 Hz for PAL)."
Edited 2022-08-16 18:15 by phil99
 
led-bloon

Senior Member

Joined: 21/12/2014
Location: Australia
Posts: 203
Posted: 11:08am 16 Aug 2022
Copy link to clipboard 
Print this post

Composite video (B/W only) using 2 GPIO pins + 2 resisters thanks to Alan Reed

Implementing Composite Video

His example of a stand-alone game of pong using 1 pio block and 2 state machines.
I had to "fix" his CMakeLists.txt file for my RaspberryPi setup and once tested on a Pico
I moved across to the Seeed XIAO with subsequent changes to the GPIO pins used.
In all, a solid display and a "cute" version of pong (no sound!!)







led
Miss you George
 
     Page 2 of 4    
Print this page
© JAQ Software 2024