Home
JAQForum Ver 20.06
Log In or Join  
Active Topics
Local Time 13:58 03 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 V5.07.00b0 - beta firmware

     Page 2 of 13    
Author Message
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 8592
Posted: 01:20pm 18 Jul 2021
Copy link to clipboard 
Print this post

INV is not supported by the H/W and therefore the firmware and is being mis-interpreted as a variable/operator
Edited 2021-07-18 23:24 by matherp
 
Doktorn

Newbie

Joined: 09/07/2019
Location: Sweden
Posts: 9
Posted: 01:32pm 18 Jul 2021
Copy link to clipboard 
Print this post

  matherp said  INV is not supported by the H/W and therefore the firmware and is being mis-interpreted as a variable/operator


OK, not often used but handy sometimes.
N/A
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 8592
Posted: 01:41pm 18 Jul 2021
Copy link to clipboard 
Print this post

I'll improve the error message in the next beta

Supported are:
EVEN ' adds an even parity bit, therefore sends 9 bits + start and stop bits by default
ODD ' adds an odd parity bit, therefore sends 9 bits + start and stop bits  by default
S2 ' 2 stop bits
7BIT ' 7 data bits instead of 8
Edited 2021-07-18 23:41 by matherp
 
lizby
Guru

Joined: 17/05/2016
Location: United States
Posts: 3016
Posted: 01:47pm 18 Jul 2021
Copy link to clipboard 
Print this post

setpin 25,pwm1b
pwm 1,50,,5+(servo_position_in_percent_of_full_scale!*0.05

Thanks.

A programming error led me to an interesting discovery: the micro servo I am using is capable of continuous rotation, as least in the counter-clockwise direction.

SetPin 25,pwm1b
PWM 1,50,,1

The above causes it to turn counter-clockwise continuously until PWM 1,OFF. So does
PWM 1,50,,.05.

Now to try to get it to do what I intended--move back and forth between the (apparently non-existent) stops.
PicoMite, Armmite F4, SensorKits, MMBasic Hardware, Games, etc. on fruitoftheshed
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 8592
Posted: 01:50pm 18 Jul 2021
Copy link to clipboard 
Print this post

Servos operate between 1 and 2mSec on a 20mSec repeat so 5%-10% is the valid range
 
lizby
Guru

Joined: 17/05/2016
Location: United States
Posts: 3016
Posted: 02:03pm 18 Jul 2021
Copy link to clipboard 
Print this post

If "SetPin 25,pwm1b: PWM 1,50,,1" gives continuous counter-clockwise rotation, any idea what value might give continuous clockwise rotation?
PicoMite, Armmite F4, SensorKits, MMBasic Hardware, Games, etc. on fruitoftheshed
 
thwill

Guru

Joined: 16/09/2019
Location: United Kingdom
Posts: 3848
Posted: 02:11pm 18 Jul 2021
Copy link to clipboard 
Print this post

  matherp said  V5.07.00b1
...
programmable function keys (up to 63 characters each)
OPTION F5 string$
OPTION F6 string$
...

Thank you VERY MUCH for these.

Two observations:

1. They are not shown by OPTION LIST.
2. CRLF appears to be automatically appended which IIRC is not the case on the CMM2 - it's just an observation, I don't particularly care either way.

  matherp said  Note to Tom - how to do a tidy exit ...

Thank you, that works.

Best wishes,

Tom
Edited 2021-07-19 00:26 by thwill
Game*Mite, CMM2 Welcome Tape, Creaky old text adventures
 
Mixtel90

Guru

Joined: 05/10/2019
Location: United Kingdom
Posts: 5735
Posted: 02:28pm 18 Jul 2021
Copy link to clipboard 
Print this post

Promising start.

It loads into a brand new Pico without having to install anything else first. :)
Working with an SD card.
Mick

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

Joined: 17/05/2016
Location: United States
Posts: 3016
Posted: 02:33pm 18 Jul 2021
Copy link to clipboard 
Print this post

  lizby said  Now to try to get it to do what I intended--move back and forth between the (apparently non-existent) stops.


For my purposes, this works--20 steps from full counter-clockwise to full clockwise in 100ms steps.

SetPin 25,pwm1b
do
 For j=1 To 40
   If j < 21 Then
     PWM 1,50,,5+j*.25 ' ramp up
     Print 5+j*.25;" ";
   Else
     PWM 1,50,, 10-(j-20)*.25 ' ramp down
     Print 10-(j-20)*.25;" ";
   EndIf
   Pause 100
 Next j
loop

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

Guru

Joined: 07/08/2011
Location: Australia
Posts: 5911
Posted: 09:48pm 18 Jul 2021
Copy link to clipboard 
Print this post

  thwill said  

This is proving to be an awkward platform to develop on without the crutch of MMEdit.

Would having the EDITor automatically restore the cursor spoil the purity of your vision ?

Any chance of some user programmable function keys to mitigate the problem ?

Best wishes,

Tom


I thought you were using PuTTY on the RPi.
Doesn't the RPi version have "Rest terminal" in the popup menu?

Jim
VK7JH
MMedit   MMBasic Help
 
thwill

Guru

Joined: 16/09/2019
Location: United Kingdom
Posts: 3848
Posted: 12:54pm 19 Jul 2021
Copy link to clipboard 
Print this post

  TassyJim said  I thought you were using PuTTY on the RPi.
Doesn't the RPi version have "Rest terminal" in the popup menu?


Ah, I imagine it does (I'm not able to check just now) and I didn't know it had any sort of popup menu .

Thanks Jim, I now have 3 ways out of this problem.

Best wishes,

Tom
Edited 2021-07-19 22:54 by thwill
Game*Mite, CMM2 Welcome Tape, Creaky old text adventures
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 8592
Posted: 01:43pm 19 Jul 2021
Copy link to clipboard 
Print this post

V5.07.00b2


PicoMiteV5.07.00b2.zip


Added maths goodness

function MATH(M_DETERMINANT array!())
command MATH M_INVERSE inarray!(), outarray!()


 
thwill

Guru

Joined: 16/09/2019
Location: United Kingdom
Posts: 3848
Posted: 08:32pm 19 Jul 2021
Copy link to clipboard 
Print this post

  thwill said  
  TassyJim said  I thought you were using PuTTY on the RPi.
Doesn't the RPi version have "Rest terminal" in the popup menu?


Ah, I imagine it does (I'm not able to check just now) and I didn't know it had any sort of popup menu .

Thanks Jim, I now have 3 ways out of this problem.

Best wishes,

Tom


If anyone cares it's Ctrl + Right Click to bring up the popup on PuTTY for Linux, at least with whatever window manager Raspbian is using by default.

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

Joined: 11/12/2012
Location: United Kingdom
Posts: 8592
Posted: 04:27pm 20 Jul 2021
Copy link to clipboard 
Print this post

V5.07.00b3


PicoMiteV5.07.00b3.zip

Now supports reading into arrays. It uses the cardinality of the array to define the number of elements that should be read in in each case

Example program

Data "x","y",1,2,3,4,5,6,7,8,9,10,11
Dim k(2,2)
Dim cc$(1) length 3
Read cc$(),aa,k(),bb
Math m_print k()
Print aa,bb
Print cc$(0),cc$(1)
 
Mixtel90

Guru

Joined: 05/10/2019
Location: United Kingdom
Posts: 5735
Posted: 07:59pm 20 Jul 2021
Copy link to clipboard 
Print this post

RTF file of a provisional doc for the beta versions. This is a bit more like a manual but still doesn't pretend to be one. :)  Will probably take a day or two to catch up with where we are.

Please don't expect this to go into as much detail as an official manual. I'm not going to include most of what MMBasic can do, but I think Peter's noble efforts deserve something a bit better than a text file now.

For those wondering why I'm not using DOC - I don't like it very much and I haven't got room on this baby computer for a full word processor anyway (although the RTF editor I'm currently using is a lot better than Wordpad and says it can save in DOC format though I've not tried it).

PicoMite Beta docs 00b1.zip
Mick

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

Joined: 02/06/2014
Location: Germany
Posts: 1133
Posted: 08:18pm 20 Jul 2021
Copy link to clipboard 
Print this post

  Mixtel90 said  RTF file of a provisional doc for the beta versions. ...

For those wondering why I'm not using DOC - ...

I think the decision to use RTF is very wise!  
Thank you!  

Best regards
Michael
 
lizby
Guru

Joined: 17/05/2016
Location: United States
Posts: 3016
Posted: 08:59pm 20 Jul 2021
Copy link to clipboard 
Print this post

  Mixtel90 said  RTF file of a provisional doc for the beta versions.

Looks good. Thanks for your efforts. Re ILI9488, shouldn't it be RGB565?
PicoMite, Armmite F4, SensorKits, MMBasic Hardware, Games, etc. on fruitoftheshed
 
Mixtel90

Guru

Joined: 05/10/2019
Location: United Kingdom
Posts: 5735
Posted: 09:49pm 20 Jul 2021
Copy link to clipboard 
Print this post

No idea, lizby. This is just a copy/paste and fight the text editor at the moment. :)
Mick

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

Joined: 12/10/2014
Location: New Zealand
Posts: 81
Posted: 11:59pm 20 Jul 2021
Copy link to clipboard 
Print this post

MMedit works fine with the PicoMite. Search on the forum for MMEDIT PICO (all) for Jim's update

Hi
Am I understanding this correctly, does this mean I can connect to the Pico using the MMEDIT app just like I was connecting to a micromite?
I have tried the suggested search for MMEDIT PICO (all) but cannot find the update. Can anyone point me in the right direction.
Much appreciated as always.
 
palcal

Guru

Joined: 12/10/2011
Location: Australia
Posts: 1804
Posted: 02:21am 21 Jul 2021
Copy link to clipboard 
Print this post

You have to download this file and put it in the MMEdit folder in 'Program Files'
File
"It is better to be ignorant and ask a stupid question than to be plain Stupid and not ask at all"
 
     Page 2 of 13    
Print this page
© JAQ Software 2024