Skip to main content

AI to the rescue...

One regular blog reader turned to chatGPT with my problem stated in yesterday's blog.  The answer was in the form if you were using Micro-Python or regular Python for coding. Indeed, the pin designations were different from what I had posted. I thought this is the answer. Well sadly none of that compiled in the Arduino IDE. But the exercise convinced me that indeed there has to be something different in the way the pins are named.

The ever-curious blog readers would ask -- why does the built in LED code work? In fact, the often-used example in how to code the Pi Pico is the Miyagi LED ON LED OFF tutorial. If that works making a Pin HIGH should work. One possible and likely THE reason -- the built in LED IS NOT a Pin on the Pi Pico and therefore no Pin is specified in the code.

This cannot be this hard. Perhaps another run at chatGPT only specifying only show code that can be used in the Arduino IDE. It all comes down to asking the right question to the problem at hand.

Well, I made a run using co-pilot and this is another answer. This is a blinking LED example using an external LED and there is a clue in the define statement which designates the GPIO Pin, Thank you AI. I loaded the code and that worked!







If you know you then you can make it go.

73's
Pete N6QW
 
PS: The photo is of nothing special just there; otherwise blog readers will pan any posting without a photo. Initially I had selected a photo of Ann Margaret on a Motorcycle and then realized she is my age, and most blog readers would not understand the selection.




Popular posts from this blog

January 26, 2024. A simple CW Transceiver/Transmitter

Cruise through the lower part of the ham bands bands and what do you hear? Well, FT-8 and CW. Often you will not hear any SSB stations yet go to the lower part of the bands, and it is a cacophony (I love that word) of bad sounding signals and some high-speed keying. Fast is not so much of the issue as is bad, run together and jerky keying. But none the less our hobby started there.    So, you could crank down your ICOM 7300 and watch the waterfall on CW or you could homebrew a radio. Actually, to do CW right you need more thought up front than you do with a SSB transceiver. Often, I will state that a CW Transceiver is much more difficult to build than a simple SSB rig. I published two articles in QRP Quarterly on CW transceivers and all I got was a yawn so maybe history will repeat itself.  Yawn!   30M CW Transceiver with RIT!   Of interest is that the LO is a Varactor tuned LC oscillator using a NE602. Look closely at the RIT circuit which is only activated on ...

March 31, 2024. Happy Easter to those who celebrate this day.

What a great day to Binge on Chocolate and experience the pain of that filling that has been leaking.  I would be in that category with the leaking filling(s) had I not just spent an amount equivalent to one of the fancy new uptown appliance box transceivers on two filling repairs. Well at least I can binge on the Chocolate bunnies without fear of pain. Regrettably everything appears to have jumped in price including the price of parts. Well not so much the parts as the shipping costs.  That notably is seen in the eBay treasures. I spotted a nice heathkit DX-20 for about $50 and the shipping was $65. Likely it is a twofer with part being a way to in effect charge a higher price by inflating the shipping and in part by increased shipping costs. Shipping with insurance across the US was about $150 for this jewel and that was three years ago. 6AM on the Left Coast ~ 20M Easter Sunday! My only hope is the cost of Chocolate Bunnies remains steady although a pound of See's Candies f...

August 30, 2024. A PNP 20M SSB Transceiver

Shown below is the Block Diagram for the 20M PNP SSB Transceiver steered in the  Transmit Mode . The components shown in the dotted block are relay steered so that the block module is single pass and amplifies in a single direction. The Block diagram show steered in Transmit.  Essentially the steering process works so that the IF Module input follows the Balanced Modulator on Transmit and then the input side follows the Receive Mixer on Receive. All done with some relays and a bit of RG174U coax. For those who count things in detail, this block diagram is not unlike what was used for the PSSST Transceiver which can be found on my website . Yes, a warmed over P3ST only using PNP devices. TYGNYBNT. 73's Pete N6QW