Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 10:33 28 Nov 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 : Tests with Transmissions via Pico W and Bluetooth

Author Message
aFox
Regular Member

Joined: 28/02/2023
Location: Germany
Posts: 76
Posted: 06:24pm 23 May 2023
Copy link to clipboard 
Print this post

Maybe you are interested in

BT tests

Gregor
Edited 2023-05-24 04:39 by aFox
 
JohnS
Guru

Joined: 18/11/2011
Location: United Kingdom
Posts: 3804
Posted: 08:37pm 23 May 2023
Copy link to clipboard 
Print this post

It wants me to login to look :(

No thanks.

John
 
lew247

Guru

Joined: 23/12/2015
Location: United Kingdom
Posts: 1702
Posted: 05:44am 24 May 2023
Copy link to clipboard 
Print this post

  JohnS said  It wants me to login to look :(
No thanks.
John

No it does not
It asks do you "want" to login
if you close the box it lets you read it fully without doing anything
 
JohnS
Guru

Joined: 18/11/2011
Location: United Kingdom
Posts: 3804
Posted: 06:52am 24 May 2023
Copy link to clipboard 
Print this post

  lew247 said  
  JohnS said  It wants me to login to look :(
No thanks.
John

No it does not
It asks do you "want" to login
if you close the box it lets you read it fully without doing anything

We're getting different outcomes.

Doesn't matter, I was just curious to see what the link said.

I managed to grow the window and see enough of it :)

John
 
Mixtel90

Guru

Joined: 05/10/2019
Location: United Kingdom
Posts: 6798
Posted: 07:39am 24 May 2023
Copy link to clipboard 
Print this post

Strange - I got the "cookie permissions" box, but having them all off and saving it then let me see everything, no problem. Maybe uBlock Origin is helping.
Mick

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

Joined: 28/02/2023
Location: Germany
Posts: 76
Posted: 08:57am 25 May 2023
Copy link to clipboard 
Print this post

Hi

Here the uf2 file if you want to use the PicoW as a Bluetooth adapter:


BtSerialSerial1Passthrough.ino.zip


Gregor
 
Plasmamac

Guru

Joined: 31/01/2019
Location: Germany
Posts: 554
Posted: 07:05am 26 May 2023
Copy link to clipboard 
Print this post

Thx
Plasma
 
aFox
Regular Member

Joined: 28/02/2023
Location: Germany
Posts: 76
Posted: 06:30am 27 Jun 2023
Copy link to clipboard 
Print this post

@Grogster and @nbrok

Do you need a special version of BtSerialSerial1Passthrough.ino.zip?
Maybe swapping the pins 0 and 1 or other pins so you can solder a PICO W directly on top as a sandwich.

Gregor
 
Mixtel90

Guru

Joined: 05/10/2019
Location: United Kingdom
Posts: 6798
Posted: 07:23am 27 Jun 2023
Copy link to clipboard 
Print this post

Of course, the Pico W as a BT adapter needs to drop its price a bit with the JDY-33 around. :)
Mick

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

Joined: 28/02/2023
Location: Germany
Posts: 76
Posted: 06:26pm 27 Jun 2023
Copy link to clipboard 
Print this post

  Mixtel90 said  Of course, the Pico W as a BT adapter needs to drop its price a bit with the JDY-33 around. :)


But if you use a Pico VGA board you can solder Tx, Rx, 5V and some Ground pins.the Pico
No need of special board design and wires.

I think it's possible to use the Pico W's flash memory (maybe 1MB) as well.
So overall costs could go down.

Gregor
 
Mixtel90

Guru

Joined: 05/10/2019
Location: United Kingdom
Posts: 6798
Posted: 06:50pm 27 Jun 2023
Copy link to clipboard 
Print this post

As long as those of us with no use for it don't lose any more flash slots, program space or variables area. :) Adding too much stuff that could so easily hang on COM ports could kill the PicoMite.
Mick

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

Joined: 28/02/2023
Location: Germany
Posts: 76
Posted: 07:17pm 27 Jun 2023
Copy link to clipboard 
Print this post

  Mixtel90 said   Adding too much stuff that could so easily hang on COM ports could kill the PicoMite.


Please explain.
Do you mean to much current?
 
Mixtel90

Guru

Joined: 05/10/2019
Location: United Kingdom
Posts: 6798
Posted: 07:34pm 27 Jun 2023
Copy link to clipboard 
Print this post

No, using too many resources such as flash, RAM, DMA channels, PIOs etc. on the PicoMite. Supply current is relatively unimportant as you can easily use an external regulator if the switcher can't handle it. This is the problem with many of the "experimenter's" PCBs. By the time you've got buttons, lights, SD card, display, sound, keyboard etc. there's nothing left for the experimenter! It's feature overload.

MMBasic has two COM ports, One or more SPI ports, a couple of I2C ports and one or more PIOs. Not much is so expandable. The most effective way to use it is to use them rather than try to build everything in.



EDIT:
YAY! My little breakout boards for the JDY-40 work. They let you plug them into ordinary breadboards, with all connections on pins.



Incidentally, I had no luck in attempting to program the JDY-40 using Tera Term. I used YAT, which had no problems at all. I suspect that Tera Term is sending character by character and YAT sends a complete line terminated by CR LF.
Edited 2023-06-28 06:55 by Mixtel90
Mick

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

Joined: 28/02/2023
Location: Germany
Posts: 76
Posted: 09:43am 28 Jun 2023
Copy link to clipboard 
Print this post

Hi Mick

Basically I agree with you, but of course it's tempting to test the limits.

Since the Raspberry PI and Zero (W) were not available, additional momentum came into the scene.

Today, the Zero W is available in Germany for about 17.5 euros including taxes with HDMI, SD card slot, etc.. A custom PICO VGA board is of course questionable in terms of this price.

But wait a minute, is there a good BASIC for the Zero?

Maybe we will be surprised with a ZeroMite.



In my experience by using µC boards, the USB serial drivers FTI, CDC, CH34* etc. also chop up the data stream differently.
In my opinion is termination by LF (or CRLF) in any case where it is possible a good practice.

Gregor
 
Mixtel90

Guru

Joined: 05/10/2019
Location: United Kingdom
Posts: 6798
Posted: 11:28am 28 Jun 2023
Copy link to clipboard 
Print this post

You might be able to get MMBasic for Linux to run on a Zero, but it's rather a back burner project. MMBasic for DOS might be ok under WINE. I wouldn't hold out much hope for a native version on the other Raspberry Pi platforms though. That's been tried and abandoned. The problems with all the other platforms generally boil down to GPIO access (or lack of it).

I was using the same CH134, by the way, so it didn't seem to be a problem there. The JDY-40 insists on capitals and /r/n line termination. YAT is intended for programming embedded controllers etc. It's not strictly a terminal emulator.
Mick

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

Joined: 17/05/2016
Location: United States
Posts: 3150
Posted: 12:05pm 28 Jun 2023
Copy link to clipboard 
Print this post

  aFox said  But wait a minute, is there a good BASIC for the Zero?


There was a good basic for the Zero--MMBasic labelled "Picromite"--but OS changes munged the I/O, and Peter did not wish to try to keep up with a moving target.

I agree that MMBasic for the R-Pi would be valuable, but someone would need to either rework the original code for correct I/O, or take the current source and perform the grunt work for getting I/O and HTML and all the rest to work.

It's been reported that MMB4W works under Wine--but without I/O other than that possibly available with sysfs.

MMB4L certainly works on the R-Pi, but at present lacks I/O (other than with sysfs).

~
Edited 2023-06-28 22:11 by lizby
PicoMite, Armmite F4, SensorKits, MMBasic Hardware, Games, etc. on fruitoftheshed
 
aFox
Regular Member

Joined: 28/02/2023
Location: Germany
Posts: 76
Posted: 04:23pm 28 Jun 2023
Copy link to clipboard 
Print this post

I tried this
Raspberry Pi 4B Switches Relais by BASIC

But 2GB RAM and root access is in this case needed.
So not a solution for the Zero (W).

Newer versions support more I²C sensors if declared within boot.txt.
In this case is no root access needed if you use BASIC!'s SENSOR command group.

Until now I was not able to convince Konsta to implement a GPIO interface.

Today I am able to control a Pico device over USB by OliBasic.
Less headaches!


Gregor
 
lizby
Guru

Joined: 17/05/2016
Location: United States
Posts: 3150
Posted: 04:54pm 28 Jun 2023
Copy link to clipboard 
Print this post

  aFox said  Until now I was not able to convince Konsta to implement a GPIO interface.


Is he familiar with libgpiod?

After a lapse of several years, there has been interesting activity in the past few months.

Even without the control which libgpiod provides, you can without question switch relays with MMB4L using sysfs on a Pi-Zero.

See: Digital input and output on the Pi Zero W with MMB4L

~
Edited 2023-06-29 03:08 by lizby
PicoMite, Armmite F4, SensorKits, MMBasic Hardware, Games, etc. on fruitoftheshed
 
Print this page


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

© JAQ Software 2024