Home
JAQForum Ver 20.06
Log In or Join  
Active Topics
Local Time 07:05 26 Apr 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 : Picromite 5.05.04: Buster + Pi4

     Page 1 of 3    
Author Message
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 8578
Posted: 06:32pm 27 Aug 2019
Copy link to clipboard 
Print this post

Please find attached version 5.05.04 for the Raspberry Pi. This should run on any Pi with the 40-pin I/O header running Raspbian Buster or Buster Lite. It is tested on the PiZero-W and the Pi4. The Pi4 is ridiculously fast  

If you run it on Jessie you will get an error relating to the version of ncurses. If anyone can get the later version onto Jessie please post how you did it as this binary should then work.

Note you must also install PIGPIO V7.1 from here on your Buster OS to run this version.

Going forward I will only be supporting Buster and not Jessie. This release also contains the GUI enhancements Geoff has included in the latest MM+ beta firmware. Please see his release notes and the MM+ manual for details.


mmbasic.zip
Edited 2019-08-28 04:40 by matherp
 
goc30

Guru

Joined: 12/04/2017
Location: France
Posts: 425
Posted: 11:37pm 28 Aug 2019
Copy link to clipboard 
Print this post

Hi peter

very good job

I have loaded PIGPIO v7.1 and installed
I installed mmbasic on my rpi4 under Buster (full), first in "root" mode and with a screen in hdmi 1. everything is ok, I tested with "benchmark", then with my graphics program (see results)

1;01;graftest;29-08-2019;01:20:12;1.3a;
2;02;14;Pi-cromite;Pi-cromite running on H/W version: B03111;5.0504;
3;03;HDMI;0;1920;1080;
4;04;1500000000;7;0;5;
5;05;All tests;100;8;0;
6;06;011111111111111111111111111110000;100;33;0;
7;07;1;3;pixel test colored in;0.581;
8;07;2;4;Line test B/W (1pixel) in;0.149;
9;07;3;5;Line test Color (1pixel) in;0.153;
10;07;4;6;H/V Line test (rnd pixel) in;0.081;
11;07;5;7;Rectangle test 1pixel b/w not filled in;0.143;
12;07;6;8;Rectangle test 1pixel colored in;0.232;
13;07;7;9;Rectangle test rounded 1pixel in;0.243;
14;07;8;10;Rectangle test rnd width, color in;0.259;
15;07;9;11;Circle test 1pixel not filled in;0.213;
16;07;10;12;circle test rnd width not filled in;0.22;
17;07;11;13;Circle test colored not filled 1pixel in;0.206;
18;07;12;14;elipse test filled 1pixel in;0.167;
19;07;13;15;Cls color test in;3.66;
20;07;14;16;text test simple b/w size=1 font=1 in;0.009;
21;07;15;17;text test xfonts b/w size=1 all fonts in;0.017;
22;07;16;18;text test color size=1 in;0.025;
23;07;17;19;text test colored rnd*size in;0.06;
24;07;18;20;text rotate test in;0.122;
25;07;19;21;text transparent test in;0.074;
26;07;20;22;Triangles no bg test in;0.004;
27;07;21;23;Triangles color bg test in;0.004;
28;07;22;24;SPRITE function test in;0.593;
29;07;23;25;Stars function test in;0.1;
30;07;24;26;elipses rnd function test in;0.339;
31;07;25;27;Arcs function (1 pixel) test in;0.208;
32;07;26;28;Arcs function (x pixels) test in;0.311;
33;07;27;29;Beziers function test in;0.21;
34;07;28;0;Gauges function test in;0.054;
35;08;28;end of test;Total time test;8.437;

the speed of the test is impressive 8sec. (with stm32H7 it take 41sec)

just some infos: this is in fullscreen, not in window, in case of windows, it is not good

in user mode (not root) it is also ok but only in full screen
with an extern panel (like ILI) it seem also good, but not realy tested (I can't connect lcd with my rpi)
tomorrow, if I found second hdmi adaptator, i test with 2 screen
 
Glen0
Regular Member

Joined: 12/10/2014
Location: New Zealand
Posts: 77
Posted: 11:36pm 02 Sep 2019
Copy link to clipboard 
Print this post

Hi
I was given a Pi 4 Model B with 2GB RAM and now want to install mmbasic. I am completely new to Raspberry Pi and have precious little linux experience. could someone please point me to instructions on how to install mmbasic on my new toy.
My Pi4 appears to be running "Buster" and I have installed PIGPIO as mentioned in Peters' message.
This will be much appreciated.
 
goc30

Guru

Joined: 12/04/2017
Location: France
Posts: 425
Posted: 02:16am 03 Sep 2019
Copy link to clipboard 
Print this post

Hi glen0

good begin
Have-you load "mmbasic" in same folder as PIGPIO?

you can find some infos in this topic
PiCromite

but in first I think that best is to install Samba (you can find many tuto on web)
 
Glen0
Regular Member

Joined: 12/10/2014
Location: New Zealand
Posts: 77
Posted: 10:09am 03 Sep 2019
Copy link to clipboard 
Print this post

Hi Goc30
Thanks for your reply
I did have a look at an earlier version of that manual but I didn't see the part telling us how to install. Not the first time I haven't read a manual properly.
I was doing an update on the pi in preparation to installing Samba and the unit became unresponsive so I am going to have to get this sorted out first before I continue. I suspect I will have to return it and hopefully get a replacement sooner rather than later.
Do you recommend loading mmbasic into the same folder as PIGPIO?
Thanks again
 
goc30

Guru

Joined: 12/04/2017
Location: France
Posts: 425
Posted: 11:10am 03 Sep 2019
Copy link to clipboard 
Print this post

  Glen0 said  
Do you recommend loading mmbasic into the same folder as PIGPIO?
Thanks again


The best is to create folder "Micromite" in "/Home/pi/" where you load mmbasic and PIGPIO (and all basic progs and data)

If you use only hdmi, you must put "OPTION LCDPANEL HDMI" (caveat with ".option" hiden file, best is to delete this file before enter "option lcdpanel"

for install, I write a small doc but it is in french, I have not finish to translate
if you understand frenc, I can give you my doc
Edited 2019-09-03 21:13 by goc30
 
goc30

Guru

Joined: 12/04/2017
Location: France
Posts: 425
Posted: 11:18am 03 Sep 2019
Copy link to clipboard 
Print this post

to peter
test graf in hdmi
rpi3+ -> 20 sec
rpi4  -> 08 sec
 
nutson
Newbie

Joined: 01/07/2019
Location: Netherlands
Posts: 14
Posted: 07:30pm 06 Sep 2019
Copy link to clipboard 
Print this post

I have installed this MMBASIC version 5.05.04 (and PIGPIO) on a 4GB Raspberyy 4 with a 1080x1920 HDMI display, but have no luck with OPTION LCDPANEL HDMI. Two out of three times LINUX freezes, and I have to reboot and remove the .OPTIONS file to be able to restart MMBASIC. If MMBASIC keeps running it does not respond to graphics commands as LINE and CIRCLE, or GUI RESET /TEST with error "display not configured". OPTION LIST responds correct with LCDPANEL HDMI, MM.HRES an MM.VRES give correct values (although, I once reduced the resolution of the HDMI output to 720X1280, and MM.HRES and MM.VRES stil were displayed as 1920 and 1080. MM.DEVICE reports version C03111

What am I missing or doing wrong? What should have happened? Other users report success with HDMI output, so it can work alright.

Nico Hattink
 
goc30

Guru

Joined: 12/04/2017
Location: France
Posts: 425
Posted: 01:05am 07 Sep 2019
Copy link to clipboard 
Print this post

Hi nutson

What I found
with rpi4 you must work in full screen, not in a window, so do not run "startx". the ideal is to use "buster lite". I do not know if it's a bug in mmbasic or a background problem rpi4 / buster. It is Matherp who will be able to answer exactly

add more info:
with 2 screens it is litle more slow
test graf: 9sec with 2 screens, and 8sec with only one screen
in "lite" mode second screen is only a copy of first screen

if you are in desktop mode (run startx) and after you exit desktop and work in "lite" mode (command line), after that mmbasic freeze
That mean that for mmbasic, you must work only in "lite" mode (in command line)
Edited 2019-09-07 12:41 by goc30
 
nutson
Newbie

Joined: 01/07/2019
Location: Netherlands
Posts: 14
Posted: 06:14am 07 Sep 2019
Copy link to clipboard 
Print this post

Thanks goc30 for your remarks, I am in full screen mode now and it works OK. I was not sure how to go to "full screen mode", my LINUX simply booted into the graphical desktop. But I found the option to boot into the command line, from there I can start MMBASIC and use STARTX to get into the desktop again.
 
nutson
Newbie

Joined: 01/07/2019
Location: Netherlands
Posts: 14
Posted: 07:59am 30 Sep 2019
Copy link to clipboard 
Print this post

Still running 5.05.04 on a Raspberry4 4GB and 1080x1920 HDMI. The basic drawing commands (line,circle, text) work as expected, but none of the GUI commands: they respond "Display not configured". What am I missing? Do I need another step to enable the GUI commands?

Regards to all, Nico Hattink
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 8578
Posted: 08:28am 30 Sep 2019
Copy link to clipboard 
Print this post

  Quote  What am I missing? Do I need another step to enable the GUI commands?


Geoff made a change recently to how an active display is detected. Sounds like when I implemented his GUI update I didn't modify my code to detect an HDMI display on the
Pi-cromite. Not at home at the moment and no access to a Pi which is needed for compilation so I'm afraid it will be a couple of weeks before I can post a bug fix.
 
nutson
Newbie

Joined: 01/07/2019
Location: Netherlands
Posts: 14
Posted: 09:12am 30 Sep 2019
Copy link to clipboard 
Print this post

Thanks for he quick reply and looking forward to a fix, no sweat. I just love the combination of the fast floating point capability of the to Pi4, the powerfull MMBASIC and the crisp graphics on the HDMI screen, perfect for a variety of data processing tasks. Brings back the joy of programming to me.

Regards, Nico Hattink
 
Volhout
Guru

Joined: 05/03/2018
Location: Netherlands
Posts: 3521
Posted: 08:48pm 11 Oct 2019
Copy link to clipboard 
Print this post

I made my life horrible...

Does anyone have a compiled version (a binary, .SO or .KO, or whatever it is ?) of the PIGPIO library ?

I have a PI ZERO (not zero W) to try mmbasic on. Headless. I do not own a HDMI screen, so after some googling I found how to run the PI ZERO headless via USB with Raspbian buster lite.

In short, editing the config and cmdline files and touch-ing an ssh file.

But my linux PC would not find raspberrypi.local until I read somewhere that you have to change the network connection to "shared between computers" in the IP4 menu.
That cost a day....

Then I downloaded and unzipped PIGPIO, and put that in the SD card in /home/pi
And put mmbasic (from the zip) in the /home/pi.

Then in the PIGPIO folder a sudo make .... all OK
Then sudo make install...F*CK...need to install all kind of Python 3 tools. Without an internet connection.....(pi zero NOT W).

This is what the PI complains about..

if which python3; then python3 setup.py install ; fi
/usr/bin/python3
Traceback (most recent call last):
 File "setup.py", line 3, in <module>
   from distutils.core import setup
ModuleNotFoundError: No module named 'distutils.core'
make: *** [Makefile:107: install] Error 1


HAve no idea how to solve this without internet connection to the pi itself.

Help.....
Edited 2019-10-12 06:49 by Volhout
PicomiteVGA PETSCII ROBOTS
 
lizby
Guru

Joined: 17/05/2016
Location: United States
Posts: 3015
Posted: 09:38pm 11 Oct 2019
Copy link to clipboard 
Print this post

When I do:  sudo find / -name "pigpio*"

I get this

/var/lib/systemd/deb-systemd-helper-enabled/pigpiod.service.dsh-also
/var/lib/dpkg/info/pigpio.md5sums
/var/lib/dpkg/info/pigpio.postrm
/var/lib/dpkg/info/pigpio.list
/var/lib/dpkg/info/pigpio.postinst
/var/cache/apt/archives/pigpio_1.64-1_armhf.deb
/usr/include/pigpiod_if2.h
/usr/include/pigpio.h
/usr/include/pigpiod_if.h
/usr/bin/pigpiod
/usr/share/doc/pigpio
/usr/man/man1/pigpiod.1
/usr/man/man3/pigpio.3
/usr/man/man3/pigpiod_if.3
/usr/man/man3/pigpiod_if2.3
/lib/systemd/system/pigpiod.service
/opt/pigpio

Attached is pigpiod from /usr/bin (stretch), but I have no idea whether or not it will help you. I had to rename it to pigpiod.zip, but it's not a zip file--just remove ".zip".

pigpiod.zip
Edited 2019-10-12 07:40 by lizby
PicoMite, Armmite F4, SensorKits, MMBasic Hardware, Games, etc. on fruitoftheshed
 
MikeO
Senior Member

Joined: 11/09/2011
Location: Australia
Posts: 275
Posted: 02:33am 12 Oct 2019
Copy link to clipboard 
Print this post

This won't help without the internet but I had problems with installing PIGPIO the other day, it was missing exactly as you mentioned distutils.core. problem what ever I tried to install this binary I ran into problems , eventually this link solved the issue. link
By the way I still was unable to run the PIGPIO test routines as I have in the past but as MMbasic ran ok and I am not running I/O I was not bothered. I was running Buster minimal.

Mike
Codenquilts
 
Volhout
Guru

Joined: 05/03/2018
Location: Netherlands
Posts: 3521
Posted: 09:08am 12 Oct 2019
Copy link to clipboard 
Print this post

@lizby

The "make" did generate exactly the files you list, but in raspbian lite buster. What I will do is "chmod 777 all, and move them to the locations in your list. Reboot and see where that brings me. Using the files from Stretch is not working I guess. That should be a 10 minute job.

If that doesn't work (as already indicated), I'll try to use the method described in the link (thanks MikeO) where they describe installing from local archives (and download the distutils package first).

If I get it to work, I will also change the pi zero to fixed IP dress, because my linux (Lubuntu) creates a new network every time I repower the pi, and echt time the pi has a different IP adress.). When all that works reliable, I plan to create an image of the SD card, and make that available to TheBackShed, so everyone can benefit if they ever want to go headless with buster.

Thanks so far...

Volhout
PicomiteVGA PETSCII ROBOTS
 
lizby
Guru

Joined: 17/05/2016
Location: United States
Posts: 3015
Posted: 12:03pm 12 Oct 2019
Copy link to clipboard 
Print this post

  Volhout said  If I get it to work, I will also change the pi zero to fixed IP dress, because my linux (Lubuntu) creates a new network every time I repower the pi, and echt time the pi has a different IP adress.). When all that works reliable, I plan to create an image of the SD card, and make that available to TheBackShed, so everyone can benefit if they ever want to go headless with buster.


How are you getting (or using) an IP address on a pi zero (no W) connected with USB? Upon reflection, the easiest way to set up a headless pi-Z might be to start with a USB Wifi dongle and continue setup as with a ZW, and then remove the dongle when done (and USB serial console enabled).

(Note that on the pi-zw, I've never gone through the process of building pigpio--after headless setup with wifi, I've just done "sudo apt-get install pigpio" and that has worked with mmbasic for me for what I've tried to do.)
Edited 2019-10-12 22:08 by lizby
PicoMite, Armmite F4, SensorKits, MMBasic Hardware, Games, etc. on fruitoftheshed
 
MikeO
Senior Member

Joined: 11/09/2011
Location: Australia
Posts: 275
Posted: 06:49am 14 Oct 2019
Copy link to clipboard 
Print this post

@ Volhout,

I have been experimenting with Rasp Pi images just recently , If you (or others) are interested i can post an image on my site for people to try.

Specifically the image I have is built on Raspian Buster plus the following.

EmonCMS       (PHP application for logging , graphing, data)
Weewx         (weather application)
RPI-Clone     (clone root file system to external flash drive / SSD)
TypesetterCMS (PHP website builder)
Node-Red      (java app to joining hardware)
mmbasic

Google these apps for more info.

Mike
Codenquilts
 
Volhout
Guru

Joined: 05/03/2018
Location: Netherlands
Posts: 3521
Posted: 06:32am 15 Oct 2019
Copy link to clipboard 
Print this post

@MikeO: thanks for the offer, but I was planning to use the pi-zero as a faster MX170. So I don't need X (graphics), command line is fine (the "lite" version).

@Lizby: when I connect the headless pi through USB to a laptop, it shows up like a second network port. That is achieved by booting it different (you change to config).
You can simply ssh into it (i.e. 10.42.0.80 on port 22). So it works like using a serial terminal with an MX, only using ssh.
Only difference is you are ssh'ing into a Linux shell. And have to start mmbasic with ./mmbasic
From then on, it should work identical to the serial interface. Should...because I haven't got it to work yet.

Yesterday I decided I would buy miniHDMI convertor and microUSB-USB convertor to set up the pi zero with keyboard mouse and screen, before reverting to headless configuration.
Our local radio store had these, at cost of 40 euro's. I went home without them.

Ordered the same stuff on banggood for 1 euro 95. I'll have to wait  few weeks though.

Patience is a good virtue...

Volhout

P.s. yes, I should have ordered the pi zero W... saved me a lo of headages.
Edited 2019-10-15 16:34 by Volhout
PicomiteVGA PETSCII ROBOTS
 
     Page 1 of 3    
Print this page
© JAQ Software 2024