tag:blogger.com,1999:blog-3251920374329557969.comments2024-03-14T05:12:05.963+00:00RAREblogRomilly Cockinghttp://www.blogger.com/profile/04944907795639823332noreply@blogger.comBlogger93125tag:blogger.com,1999:blog-3251920374329557969.post-27356827520461067082023-05-08T13:19:31.975+01:002023-05-08T13:19:31.975+01:00I'm surprised that you cannot obtain the MCP62...I'm surprised that you cannot obtain the MCP6273, as it is available fomr Digikey, Mouser and the manufacturer.<br />Pins 2 and 3 are connected to the white and yellow wires. The dimple of the IC is located on the left.Romilly Cockinghttps://www.blogger.com/profile/04944907795639823332noreply@blogger.comtag:blogger.com,1999:blog-3251920374329557969.post-27078652058883769602022-08-24T18:14:42.148+01:002022-08-24T18:14:42.148+01:00Dear sir. I really want to build this, but cannot ...Dear sir. I really want to build this, but cannot get the MCP6273 here. I also do not understand the pinout of this chip, compared with how the arduino schema is drawn. What other chip can I use? To what pins are the white and yellow wire connected? IN + and - seems to be pins 2 and 3, but thos are not connected? Thanks for any advice.Perpetuum mobilehttps://www.blogger.com/profile/10356308928484311365noreply@blogger.comtag:blogger.com,1999:blog-3251920374329557969.post-53549861808708639602022-06-30T14:10:00.428+01:002022-06-30T14:10:00.428+01:00Thanks. I've fixed the article.Thanks. I've fixed the article.Romilly Cockinghttps://www.blogger.com/profile/04944907795639823332noreply@blogger.comtag:blogger.com,1999:blog-3251920374329557969.post-66162858426307455062022-06-30T14:09:29.104+01:002022-06-30T14:09:29.104+01:00I'd need to know more about your environment ...I'd need to know more about your environment to find out what's going wrong. What OS are you running, what version of Python, which version of PySerial?Romilly Cockinghttps://www.blogger.com/profile/04944907795639823332noreply@blogger.comtag:blogger.com,1999:blog-3251920374329557969.post-2059582896458080942022-06-30T14:07:54.317+01:002022-06-30T14:07:54.317+01:00The code uses the USB port, not the . The code wou...The code uses the USB port, not the . The code would need to be changed to use the uart pins. I'll take a look at what is involved tomorrow.Romilly Cockinghttps://www.blogger.com/profile/04944907795639823332noreply@blogger.comtag:blogger.com,1999:blog-3251920374329557969.post-17064121703708547482022-06-30T14:06:04.727+01:002022-06-30T14:06:04.727+01:00You should not install serial; remove it. The seri...You should not install serial; remove it. The serial package that we are using is is part of PySerial.Romilly Cockinghttps://www.blogger.com/profile/04944907795639823332noreply@blogger.comtag:blogger.com,1999:blog-3251920374329557969.post-52240455682188901272022-04-14T10:39:55.901+01:002022-04-14T10:39:55.901+01:00Hi, i am very interested in your work. But i do ha...Hi, i am very interested in your work. But i do have the same problem as Alan. I did everything as you wrote but all i can see is False output s.send('2+2') >> False and empty string s.receive(). Is there any fix for this or am i missing something? Thank you!Anonymoushttps://www.blogger.com/profile/16962255346217151356noreply@blogger.comtag:blogger.com,1999:blog-3251920374329557969.post-51179392892144378402022-03-14T20:21:25.514+00:002022-03-14T20:21:25.514+00:00Great stuff, was looking for this :)Great stuff, was looking for this :)Anonymoushttps://www.blogger.com/profile/14410553264927532208noreply@blogger.comtag:blogger.com,1999:blog-3251920374329557969.post-66821494954352041572022-03-11T00:29:35.319+00:002022-03-11T00:29:35.319+00:00I should mention that I am using the uart pins.I should mention that I am using the uart pins.JamesMichaelhttps://www.blogger.com/profile/06109037349364300104noreply@blogger.comtag:blogger.com,1999:blog-3251920374329557969.post-25705106071924900132022-03-11T00:26:48.238+00:002022-03-11T00:26:48.238+00:00I'm seeing this .. any ideas?
>>> fr...I'm seeing this .. any ideas? <br />>>> from sender import Sender<br />>>> s = Sender()<br />>>> s.send('2 + 2')<br />False<br />>>> s.receive()<br />'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0JamesMichaelhttps://www.blogger.com/profile/06109037349364300104noreply@blogger.comtag:blogger.com,1999:blog-3251920374329557969.post-51412508043230321932022-01-17T16:21:05.460+00:002022-01-17T16:21:05.460+00:00Have you finished this series? I can't seem t...Have you finished this series? I can't seem to find the follow up posts.jotthttps://www.blogger.com/profile/12967726971979095372noreply@blogger.comtag:blogger.com,1999:blog-3251920374329557969.post-65993355130629984932022-01-17T11:44:08.889+00:002022-01-17T11:44:08.889+00:00For me this is a very helpful article.
But there ...For me this is a very helpful article. <br />But there are two little faults in section "On the Host".<br />They must be:<br />Point 4.: from sender import Sender<br />Point 8.: s.send('on()')<br />Point 9.: s.send('off()'<br />RShttps://www.blogger.com/profile/05331866259113000019noreply@blogger.comtag:blogger.com,1999:blog-3251920374329557969.post-52935716441047687832021-12-15T13:13:38.532+00:002021-12-15T13:13:38.532+00:00I use Thonny (Python 3.7.9) as well as WIN10 comma...I use Thonny (Python 3.7.9) as well as WIN10 command line (Python 3.9):<br />I can't get this running.<br /><br />Thonny:<br />Python 3.7.9 (bundled)<br />>>> from sender import Sender<br />>>> s = Sender('COM3')<br />Traceback (most recent call last):<br /> File "", line 1, in <br /> File "D:\Downloads\RaspberryPi\Pico\Projekt\Pico-Kontrolle\sender.py", line 7, in __init__<br /> selfserial = serial.Serial(device, baud, timeout=timeout)<br />AttributeError: module 'serial' has no attribute 'Serial'<br />>>> <br /><br />CLI:<br />Python 3.7.9 (bundled)<br />>>> from sender import Sender<br />>>> s = Sender('COM3')<br />Traceback (most recent call last):<br /> File "", line 1, in <br /> File "D:\Downloads\RaspberryPi\Pico\Projekt\Pico-Kontrolle\sender.py", line 7, in __init__<br /> selfserial = serial.Serial(device, baud, timeout=timeout)<br />AttributeError: module 'serial' has no attribute 'Serial'<br />>>> <br /><br />How to get the missing module 'serial'?<br />In Thonny I used the the plugin management to check on PySerial and serial<br />pyserial: Version 3.5<br />serial: 0.0.97<br /><br />What am I missing?Mikehttps://www.blogger.com/profile/07936336546540593582noreply@blogger.comtag:blogger.com,1999:blog-3251920374329557969.post-77018271949388227912021-11-28T16:15:50.099+00:002021-11-28T16:15:50.099+00:00Why would you want to do that?Why would you want to do that?Romilly Cockinghttps://www.blogger.com/profile/04944907795639823332noreply@blogger.comtag:blogger.com,1999:blog-3251920374329557969.post-73351156236470820922021-11-28T16:14:50.907+00:002021-11-28T16:14:50.907+00:00Then just use a terminal program like screen on th...Then just use a terminal program like screen on the Pi, and type on() to turn the LED on and off() to turn it off. You don't need the sender program at all.Romilly Cockinghttps://www.blogger.com/profile/04944907795639823332noreply@blogger.comtag:blogger.com,1999:blog-3251920374329557969.post-15264711912038448312021-11-28T16:12:51.561+00:002021-11-28T16:12:51.561+00:00You shouldn't use a raw string. What the progr...You shouldn't use a raw string. What the program does is to send your string, followed by a carriage return '\r' and a tab '\t'.<br /><br />The pico code does not need to be put in a loop. You're sending Python commands from the Pi or Nano to the Pico; the Python REPL will execute them as they are received.Romilly Cockinghttps://www.blogger.com/profile/04944907795639823332noreply@blogger.comtag:blogger.com,1999:blog-3251920374329557969.post-28378996689689664262021-11-28T16:08:08.918+00:002021-11-28T16:08:08.918+00:00I have only programmed the ESP32 in Python, not C,...I have only programmed the ESP32 in Python, not C, but I imagine you could. You might need to change the code.Romilly Cockinghttps://www.blogger.com/profile/04944907795639823332noreply@blogger.comtag:blogger.com,1999:blog-3251920374329557969.post-90616307961186965572021-11-28T16:02:30.917+00:002021-11-28T16:02:30.917+00:00That's usually a sign that the USB cable is a ...That's usually a sign that the USB cable is a power cable, not a data cable.Romilly Cockinghttps://www.blogger.com/profile/04944907795639823332noreply@blogger.comtag:blogger.com,1999:blog-3251920374329557969.post-52048394107835265912021-11-28T16:01:36.857+00:002021-11-28T16:01:36.857+00:00I'm sorry, I have no experience with PLCs.I'm sorry, I have no experience with PLCs.Romilly Cockinghttps://www.blogger.com/profile/04944907795639823332noreply@blogger.comtag:blogger.com,1999:blog-3251920374329557969.post-68890562051377362922021-11-28T15:59:20.723+00:002021-11-28T15:59:20.723+00:00As the post explains, the Op Amp is there to incre...As the post explains, the Op Amp is there to increase accuracy. Without it the Arduino might draw so much current from the circuit that the measurements would be incorrect.<br /><br />Why are you looking for an alternative to the MCP6273?Romilly Cockinghttps://www.blogger.com/profile/04944907795639823332noreply@blogger.comtag:blogger.com,1999:blog-3251920374329557969.post-85683628214977891322021-11-28T15:52:57.143+00:002021-11-28T15:52:57.143+00:00Are you still having problems? If so, can you tell...Are you still having problems? If so, can you tell me which sensors you're trying to connect? I'll help if I can.Romilly Cockinghttps://www.blogger.com/profile/04944907795639823332noreply@blogger.comtag:blogger.com,1999:blog-3251920374329557969.post-12641830695992194102021-11-28T15:50:59.821+00:002021-11-28T15:50:59.821+00:00https://github.com/romilly/pico-code/blob/master/s...https://github.com/romilly/pico-code/blob/master/src/pico_code/pico/experiments/pio_dac.pyRomilly Cockinghttps://www.blogger.com/profile/04944907795639823332noreply@blogger.comtag:blogger.com,1999:blog-3251920374329557969.post-8879564068072110162021-11-28T15:47:06.678+00:002021-11-28T15:47:06.678+00:00Without more information on what you did earlier i...Without more information on what you did earlier it's hard to tell what has gone wrong. You presumably had to go back to the installation of Ubuntu and start again from scratch.Romilly Cockinghttps://www.blogger.com/profile/04944907795639823332noreply@blogger.comtag:blogger.com,1999:blog-3251920374329557969.post-49639063077982392732021-11-28T15:42:05.308+00:002021-11-28T15:42:05.308+00:00There was a typing error in the instructions, whic...There was a typing error in the instructions, which I have now corrected.<br /><br />When you set up the nano in part 2 of the instructions, Ubuntu asks you to chose a hostname for the computer. That's what you need to use here. If you chose 'nano' for the hostname. you'd need to type 'http://nano:8888'Romilly Cockinghttps://www.blogger.com/profile/04944907795639823332noreply@blogger.comtag:blogger.com,1999:blog-3251920374329557969.post-22244376887327397962021-11-28T15:31:12.050+00:002021-11-28T15:31:12.050+00:00Apologies for the delay in responding - see my lat...Apologies for the delay in responding - see my latest post for the explanation.<br /><br />From memory, I think I used the Adafruit Blinka library on the Pi. I may have time to check that out in the next few days. Romilly Cockinghttps://www.blogger.com/profile/04944907795639823332noreply@blogger.com