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 : phone as scope
Author | Message | ||||
stanleyella Guru Joined: 25/06/2022 Location: United KingdomPosts: 2216 |
saw this. could it be done with mmbasic? https://www.youtube.com/watch?v=pok7pwS_sdc |
||||
DaveJacko Regular Member Joined: 25/07/2019 Location: United KingdomPosts: 79 |
most impressed to see this! thanks Stan. however, I need to walk before I run. can anyone kindly help me buy my first smart phone? 1) run Teraterm or similar VT100 2) BlueTooth (or do they all do?) 3) be a good few years behind the latest model 4) have an OS that an MMBasic user can live with Thanks, Dave (started with punched tape) Try swapping 2 and 3 over |
||||
stanleyella Guru Joined: 25/06/2022 Location: United KingdomPosts: 2216 |
I don't think you can connect a mmbasic pico to android yet. but one day, who knows. there's some interesting pico projects that you just flash a uf2,,eg. zx spectrum. |
||||
PhenixRising Guru Joined: 07/11/2023 Location: United KingdomPosts: 935 |
Absolutely you can... it's what I do for a living My logic/reasoning: An Android device is arguably the most powerful/capable user interface ever created and they're ubiquitous and inexpensive. Why does anything have a dedicated screen anymore? The user interface receives the most abuse and is the first thing to fail. Our member, aFox is the matherp of OliBasic (a very powerful Basic interpreter for Android). Child's play to program with and can do pretty much anything. I really have no need for Webmite, VGAmite, HDMImite because they pale in comparison to my Android device that's linked to a Picomite. |
||||
PhenixRising Guru Joined: 07/11/2023 Location: United KingdomPosts: 935 |
Check out Ulefone...makes the latest iPhone look and feel like a child's toy. |
||||
Mixtel90 Guru Joined: 05/10/2019 Location: United KingdomPosts: 6948 |
I have to admit that when I see things like this I think "but why?". You can get a low-end scope for 150UKP. It has two channels, a proper trigger system, a 7 inch screen (beat that, Apple!), 1GS/s. (Although claimed to be 100MHz analogue bandwidth I wouldn't read too much into that :) ). Get a proper 'scope. It's far more useful and cheaper than many smart phones! It also doesn't have a battery of unknown condition in it, that could split the case anytime. Don't get me wrong, things like Scopy have their place, but that place isn't where beginners should be going. Try measuring a 9V battery and you could (subject to any input protection) kill your phone. In this case (assuming a RP2040), feed in more than +/-1.8V and the Pico is dead. There is no attenuation and no protection. Incidentally, Scopy needs Android 5 or newer, so not all those old phones in the back of the drawer will work. :) . Edited 2024-12-31 19:57 by Mixtel90 Mick Zilog Inside! nascom.info for Nascom & Gemini Preliminary MMBasic docs & my PCB designs |
||||
PhenixRising Guru Joined: 07/11/2023 Location: United KingdomPosts: 935 |
You ship a PicoMite based product and you incorporate an extra Pico for Scoppy. Client calls to report a malfunction You connect to his Android device via TeamViewer and instruct him where to hang the probes Now you are remotely observing the signal. Very rarely do I need a scope for troubleshooting anymore but when it appears that the signals from a £10K motor/encoder might have failed, you don't want to tell your client to replace it "just to see" |
||||
Mixtel90 Guru Joined: 05/10/2019 Location: United KingdomPosts: 6948 |
As I said, this sort of thing has its place. Yours is what I would call a specialised application. As far as the youtube clip goes it is simply asking for problems though. No input protection whatsoever. Even in your case I'd suggest a proper PCB, with input voltage clipping and a simple voltage divider on the input, possibly with the ability to switch it out if the input is guaranteed to be less than +/-1.8v. Control gear has a tendency to contain pico-frying voltages like 0-10V and 24V (AC & DC). Somebody *will* poke the probes into the wrong place. If you are lucky only the Pico will explode. :) Mick Zilog Inside! nascom.info for Nascom & Gemini Preliminary MMBasic docs & my PCB designs |
||||
PhenixRising Guru Joined: 07/11/2023 Location: United KingdomPosts: 935 |
Of this, we can be certain I chatted with the author of Scoppy....need to go and check the email but with the 20 x probe option, I believe we are covered at least up to 24v. Will check when I can. I find it bizarre that so many Pico developments have happened that just seem tailor made for my needs. Maybe I should have a go at the lottery |
||||
Mixtel90 Guru Joined: 05/10/2019 Location: United KingdomPosts: 6948 |
Scoppy itself running on its battery-operated android device, is probably safe as it would mean out of spec voltages appearing on the USB connector. Only a possibility if the RP2040 seriously explodes. A mere burn-out of the ADC would probably protect it. No, the problem is with that comes before the Pico pins. No pin can be driven above 3V6 (RP2040) or 5V (RP2350 but only if powered at 3V3 - and the ADC is still 3V3). In order to display the negative half of a waveform a virtual GND is produced from two identical resistors across the supply (which is also VREF). So your operational input limits are +/-1.65V. The ADC is less flexible than digital inputs. I would start by setting the maximum input at +/- 1.2V. I'd do that by putting two reverse-parallel silicon diode pairs in series between the ADC pin and virtual GND - remember, we are using it as a differential input. The series resistor on the ADC input will limit the current through these if they are forced to conduct. Now you haven't got a lot of input voltage to work with. An op-amp could give you several gains (x5 would be a good starting point), and a voltage divider before it can drop larger voltages, as well as also reducing noise on the input signal. A x5 gain over +/-1V basic sensitivity would give you +/-0.2V input sensitivity. I don't know how Scoppy works, but I'm sure there'll be settings. The potential divider could give you various steps. See what I mean? Scoppy is only part of the solution. It's a display device, not a scope. You actually need a fair bit of hardware to turn it into a usable 'scope - and a Pico isn't it. That's just the middle stage that fits between the ADC and the USB display. Mick Zilog Inside! nascom.info for Nascom & Gemini Preliminary MMBasic docs & my PCB designs |
||||
PhenixRising Guru Joined: 07/11/2023 Location: United KingdomPosts: 935 |
Oh, I've always been aware of the hardware requirements which is why I contacted them about the X 20 probes. GitHub Edited 2025-01-01 04:29 by PhenixRising |
||||
PhenixRising Guru Joined: 07/11/2023 Location: United KingdomPosts: 935 |
They have an interesting video about running Android on Windows. I already use LD Player and it works perfectly. Might wanna turn the volume down or someone might think you dropped the cutlery |
||||
PeteCotton Guru Joined: 13/08/2020 Location: CanadaPosts: 375 |
In fairness - I think that sums up pretty much most of what I do with the CMM2. Why do people climb mountains or spot trains? |
||||
stanleyella Guru Joined: 25/06/2022 Location: United KingdomPosts: 2216 |
Why do people climb mountains or spot trains? why do people smoke and drink? the final version was the same for me as rc5. problems on the forum resolved I never had. this was how to connect pico to android from mmbasic stan |
||||
Mixtel90 Guru Joined: 05/10/2019 Location: United KingdomPosts: 6948 |
Set up a COM port and use a bluetooth adapter. There are bluetooth terminal apps for Android. I think what you wanted to do was a high speed graphic interface between MMBasic and Android though, wasn't it? I stick by what I said though, if you want a 'scope get a 'scope. It will cost more than the "posh" PCB for Scoppy but it's far more useful. Edited 2025-01-01 07:16 by Mixtel90 Mick Zilog Inside! nascom.info for Nascom & Gemini Preliminary MMBasic docs & my PCB designs |
||||
PhenixRising Guru Joined: 07/11/2023 Location: United KingdomPosts: 935 |
The HC-05 BT device is a piece of cake with the Mites. AT commands required to set a few parameters and then off to the races. Just read/write the UART as if it was hard-wired. I can get you going on the Android Basic with a few lines: BT.Open BT.Connect BT.Status (wait for connected) BT.Read.Ready (any data to read?) BT.Read BT.Write |
||||
PhenixRising Guru Joined: 07/11/2023 Location: United KingdomPosts: 935 |
As I am being naughty by executing a chunk of code inside my SETTICK ISR, I always have my DSO Nano V3 connected to a DO to keep an eye on timing. What a cool little pocket device. Only single channel, mind. |
||||
Mixtel90 Guru Joined: 05/10/2019 Location: United KingdomPosts: 6948 |
I have a DSO112A which is handy for that stuff. :) Being electrically floating (unlike a conventional 'scope) it's also useful for looking at the anode voltages of valve amps. With a suitable series resistor you can even watch the anode-anode voltage of an output transformer. Mick Zilog Inside! nascom.info for Nascom & Gemini Preliminary MMBasic docs & my PCB designs |
||||
PhenixRising Guru Joined: 07/11/2023 Location: United KingdomPosts: 935 |
I was watching BigMik's (fascinating) history videos and then glanced at my Pico coupled to a pocket scope What was it "we were achieving two operations per second and we knew we had to increase that a hundred fold" 🤣 😂 Edited 2025-01-01 09:09 by PhenixRising |
||||
stanleyella Guru Joined: 25/06/2022 Location: United KingdomPosts: 2216 |
as mick said get a real scope> I got hantek 6022 usb scope and a dual lcd that the battery don't charge so needs usb supply. not this but the same..avoid https://www.amazon.co.uk/Digital-Oscilloscope-Portable-Channel-Bandwidth/dp/B0CGWJ44RD Edited 2025-01-01 09:42 by stanleyella |
||||
Print this page |