Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 06:55 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 : Pico - again

Author Message
lew247

Guru

Joined: 23/12/2015
Location: United Kingdom
Posts: 1702
Posted: 04:37pm 13 Mar 2022
Copy link to clipboard 
Print this post

I have searched but not found anything.
Has anyone developed any code for the Pico or any MM device to use Ethernet via cable?
Im thinking about something like an LAN8720 breakout board
or this as its only around GBP5

It has C/C++ Examples here and
CircuitPython Examples here
Has anyone done anything similar and has examples of how to code with MMbasic with them?
 
Tinine
Guru

Joined: 30/03/2016
Location: United Kingdom
Posts: 1646
Posted: 05:31pm 13 Mar 2022
Copy link to clipboard 
Print this post

Hey Lewis,

Not sure if I posted the Tibbo stuff before but I think it would be my choice. All kinds of possibilities.


Craig
 
lizby
Guru

Joined: 17/05/2016
Location: United States
Posts: 3378
Posted: 05:53pm 13 Mar 2022
Copy link to clipboard 
Print this post

Why would wired be any better than the wireless you can have now with the ESP?

You'd still have the problem of how to ask for what you want, and how to handle what you get. Some of that can at least be programmed for on the ESP-01 or D1 Mini.
PicoMite, Armmite F4, SensorKits, MMBasic Hardware, Games, etc. on fruitoftheshed
 
lew247

Guru

Joined: 23/12/2015
Location: United Kingdom
Posts: 1702
Posted: 08:09pm 13 Mar 2022
Copy link to clipboard 
Print this post

  lizby said  Why would wired be any better than the wireless you can have now with the ESP?

Because the project I have in mind would have no batteries and could have power run through the internet cable, so it would be all in one cable

  lizby said  You'd still have the problem of how to ask for what you want, and how to handle what you get.


Thats why I asked the question "has anyone used Ethernet on any MMBasic stuff"
 
lizby
Guru

Joined: 17/05/2016
Location: United States
Posts: 3378
Posted: 09:41pm 13 Mar 2022
Copy link to clipboard 
Print this post

  lew247 said  the project I have in mind would have no batteries and could have power run through the internet cable, so it would be all in one cable


No problem powering the Picomite with wires and running an ESP-01 (depending on access to WIFI). Can you do what you want with a Raspberry Pi running MMB4L?
PicoMite, Armmite F4, SensorKits, MMBasic Hardware, Games, etc. on fruitoftheshed
 
Grogster

Admin Group

Joined: 31/12/2012
Location: New Zealand
Posts: 9610
Posted: 12:15am 14 Mar 2022
Copy link to clipboard 
Print this post

If you are asking about actual HTML kind of web-site host support stuff, I'm not aware of anyone who has done that on the MM series, but I may have simply missed a thread about it.  Someone will chime in here and point that out if I have that wrong.

I've played around with the WizNet 106SR I think was the model number - ethernet to serial adaptor, and later on the easier to configure(IMHO) USR TCP232 module which is the same kind of ethernet to serial adaptor.  

You connect this to your network, and it talks on the network via a UART connection.

At one point, I even had port-forwarding etc setup, so people here on the forums could connect to a MM2 I had hanging off the end of one of those, and people could connect and leave messages via the editor, which gives you WAN level access - useful if you have an install hundreds of miles away, cos you can connect to it and perform remote admin on your project.  

There were no code-examples of these really, as in those cases, I just had the ethernet module connected to the MM2's serial console.  Provided you could connect, you had access to the Micromite console over the ethernet, but you could connect it to COM1 or COM2 etc, for dedicated code-driven menus for control over the LAN(or WAN if you wanted to go that far), but initial testing I did with the help of other members here at the time, proved it was certainly possible and reasonably easy do to.

I never got around to implementing LAN support on my stuff, so once I had finished with the experimenting, it never really developed past that point.

However, your GBP5 price for that module you posted a photo of, is certainly a sweet-spot price-wise.  I will have to look up that module.
Smoke makes things work. When the smoke gets out, it stops!
 
Grogster

Admin Group

Joined: 31/12/2012
Location: New Zealand
Posts: 9610
Posted: 12:24am 14 Mar 2022
Copy link to clipboard 
Print this post

Interestingly, I note that WIZnet actually make and sell a PICO module, with the ethernet combined on the one unit - clever, and only US$10.  

Link...



Edited 2022-03-14 10:25 by Grogster
Smoke makes things work. When the smoke gets out, it stops!
 
lew247

Guru

Joined: 23/12/2015
Location: United Kingdom
Posts: 1702
Posted: 07:53am 14 Mar 2022
Copy link to clipboard 
Print this post

  Grogster said  If you are asking about actual HTML kind of web-site host support stuff

Not really, I was thinking mostly the commands that were available on the Pi when that was a thing.
It's going to sound really stupid, but I want to make a clock that's driven by stepper motors and every now and then gets it's time from time servers on the internet.
I have this thing (obsession) about clocks having to have the exact time down to the second
I could run the ethernet cable in the wall behind the clock with a proper rj45 socket on the wall so it looks neat and tidy and get it's power over the ethernet cable.
I know most will say it's an idiotic idea when you can just use an RTC module to keep time but..
 
Grogster

Admin Group

Joined: 31/12/2012
Location: New Zealand
Posts: 9610
Posted: 08:50am 14 Mar 2022
Copy link to clipboard 
Print this post

No, not idiotic at all.
Atomic Clocks exist for a reason, and that reason is that every second counts(way more then that actually!) - if you will pardon the pun.

Keep us all posted.
Sounds like an interesting project.
Smoke makes things work. When the smoke gets out, it stops!
 
Mixtel90

Guru

Joined: 05/10/2019
Location: United Kingdom
Posts: 7937
Posted: 09:06am 14 Mar 2022
Copy link to clipboard 
Print this post

How about using a GPS module with a 'mite and using that to get the time? Would that be too unreliable?
Mick

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

Joined: 31/12/2012
Location: New Zealand
Posts: 2442
Posted: 09:07am 14 Mar 2022
Copy link to clipboard 
Print this post

  lew247 said  It's going to sound really stupid, but I want to make a clock that's driven by stepper motors and every now and then gets it's time from time servers on the internet. I have this thing (obsession) about clocks having to have the exact time down to the second


it is a cool idea  

how about instead using a GPS module (cheap and available) hooked up to an MX170-based micromite? unless you live in a tin house, even inside a GPS module will eventually pick up a time signal. no need for an RTC module, and can just hard-wire the UTC and daylight savings offsets for your location (or have +/-15 minute push buttons).


cheers,
rob   :-)

snap! mick was writing his post at the same time as me
Edited 2022-03-14 19:09 by robert.rozee
 
lew247

Guru

Joined: 23/12/2015
Location: United Kingdom
Posts: 1702
Posted: 12:27pm 14 Mar 2022
Copy link to clipboard 
Print this post

Nice ideas, I guess I could still use the same ethernet rj45 socket with the cables in the wall to give power instead of ethernet and power
The only thing is the clock face I want to use is metal and no way will the gps signal at 1575.42MHz pass through it
If I changed it to anything non metalic it would work
 
lew247

Guru

Joined: 23/12/2015
Location: United Kingdom
Posts: 1702
Posted: 12:29pm 14 Mar 2022
Copy link to clipboard 
Print this post

  Tinine said  Hey Lewis,
Not sure if I posted the Tibbo stuff before but I think it would be my choice. All kinds of possibilities.
Craig


I've been checking it out, really interesting modules, ethernet and wifi on some of them along with lots of inputs/outputs and they run a version of basic already
It would be interesting to know what the actual cpu is
 
Mixtel90

Guru

Joined: 05/10/2019
Location: United Kingdom
Posts: 7937
Posted: 01:15pm 14 Mar 2022
Copy link to clipboard 
Print this post

You could, of course, just switch to a Raspberry Pi rather than a 'mite. All you need then is the POE stuff to power it.
Mick

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

Joined: 17/05/2016
Location: United States
Posts: 3378
Posted: 01:46pm 14 Mar 2022
Copy link to clipboard 
Print this post

What kind of I/O do you need for the clock?
PicoMite, Armmite F4, SensorKits, MMBasic Hardware, Games, etc. on fruitoftheshed
 
robert.rozee
Guru

Joined: 31/12/2012
Location: New Zealand
Posts: 2442
Posted: 02:20pm 14 Mar 2022
Copy link to clipboard 
Print this post

  lew247 said  Nice ideas, I guess I could still use the same ethernet rj45 socket with the cables in the wall to give power instead of ethernet and power
The only thing is the clock face I want to use is metal and no way will the gps signal at 1575.42MHz pass through it
If I changed it to anything non metalic it would work


just make sure the GPS patch antenna is pointing away from the metal face. as long as it is not fully enclosed on all sides (ie, in a metal box) you should be able to pick up enough of a signal for timekeeping.

alternatively: place your GPS module at the other end of the cat5 cable (where the power is coming from), with one of the spare wires carrying the TTL serial data back to the clock.


cheers,
rob   :-)
 
TassyJim

Guru

Joined: 07/08/2011
Location: Australia
Posts: 6283
Posted: 08:12pm 14 Mar 2022
Copy link to clipboard 
Print this post

Make sure that the GPS module has the PPS output available. Not all do.
VK7JH
MMedit
 
palcal

Guru

Joined: 12/10/2011
Location: Australia
Posts: 1993
Posted: 08:45pm 14 Mar 2022
Copy link to clipboard 
Print this post

Hi Lewis,
         I suppose you have seen THIS
"It is better to be ignorant and ask a stupid question than to be plain Stupid and not ask at all"
 
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