Chips with everything

Title says it all
Message
Author
User avatar
admin2
Capt
Capt
Posts: 738
Joined: Sun Aug 23, 2015 4:13 pm
Location:

Chips with everything

#1 Post by admin2 » Mon Dec 05, 2022 1:46 am

By request - geek corner.

I hope I have sorted out the circuitry here correctly, but wish I had not had that extra glass of wine............. =))

User avatar
llondel
Chief Pilot
Chief Pilot
Posts: 5926
Joined: Wed Oct 03, 2018 3:17 am
Location: San Jose

Re: The really boring and totally pointless snippets thread V

#2 Post by llondel » Mon Dec 05, 2022 1:47 am

Evening all, the rain departed early, so it was relatively warm and sunny for most of today. I took the opportunity to put up the external lights. I use the waterproof LED strips, 5m long, and this year bought a complete new set, which is just as well because the previous set took some damage this year. Previously I'd had two of them driven from an Arduino, but this year I installed five strips across the whole width of the house and tweaked the Arduino code slightly to cope with the extras. Looks fairly good.

I also figured out how the code works, so in theory I could put up Halloween colours for next year too.

User avatar
Fox3WheresMyBanana
Chief Pilot
Chief Pilot
Posts: 13177
Joined: Thu Sep 03, 2015 9:51 pm
Location: Great White North
Gender:
Age: 61

Re: The really boring and totally pointless snippets thread V

#3 Post by Fox3WheresMyBanana » Mon Dec 05, 2022 2:01 am

I would be interested in the code, if you could. Is it on Github?

TheGreenAnger
Chief Pilot
Chief Pilot
Posts: 3286
Joined: Fri Jul 15, 2022 11:40 pm
Location: Unfashionable end of the Western Spiral

Re: The really boring and totally pointless snippets thread V

#4 Post by TheGreenAnger » Mon Dec 05, 2022 5:31 am

Fox3WheresMyBanana wrote:
Mon Dec 05, 2022 2:01 am
I would be interested in the code, if you could. Is it on Github?
#define LED_PIN 13

void setup() {
// Configure pin 13 to be a digital output
pinMode(LED_PIN, OUTPUT);
}

void loop() {
// Turn on the LED
digitalWrite(LED_PIN, HIGH);
// Wait 1 second (1000 milliseconds)
delay(1000);
// Turn off the LED
digitalWrite(LED_PIN, LOW);
// Wait 1 second
delay(1000);
}
'Comment - ACHTUNG! ALLES LOOKENSPEEPERS!

Das computermachine ist nicht fuer gefingerpoken und mitten grabben.

Ist easy schnappen der springen werk, blowenfusen und poppencorken mit spitzensparken.

Ist nicht fuer gewerken bei das dumpkopfen.

Das rubbernecken sichtseeren keepen das cotten-pickenen hans in das pockets muss; relaxen und watchen das blinkenlichten.
namespace GoodbyeWorld
{
class Hello {
static void Main(string[] args)
{
System.Console.WriteLine("Goodby Cruel World!");
}
}
}

=))
My necessaries are embark'd: farewell. Adieu! I have too grieved a heart to take a tedious leave.

TheGreenAnger
Chief Pilot
Chief Pilot
Posts: 3286
Joined: Fri Jul 15, 2022 11:40 pm
Location: Unfashionable end of the Western Spiral

Re: The really boring and totally pointless snippets thread V

#5 Post by TheGreenAnger » Mon Dec 05, 2022 5:56 am

As there is a slightly technological trend here this morning. I recommend this very interesting site and application to the house. This application definitely passes the Turing test.
We’ve trained a model called ChatGPT which interacts in a conversational way. The dialogue format makes it possible for ChatGPT to answer followup questions, admit its mistakes, challenge incorrect premises, and reject inappropriate requests. ChatGPT is a sibling model to InstructGPT, which is trained to follow an instruction in a prompt and provide a detailed response.

https://openai.com/blog/chatgpt/

It failed in this though! Clearly it understands irony! =))

failed.JPG
My necessaries are embark'd: farewell. Adieu! I have too grieved a heart to take a tedious leave.

User avatar
llondel
Chief Pilot
Chief Pilot
Posts: 5926
Joined: Wed Oct 03, 2018 3:17 am
Location: San Jose

Re: The really boring and totally pointless snippets thread V

#6 Post by llondel » Mon Dec 05, 2022 7:05 pm

Fox3WheresMyBanana wrote:
Mon Dec 05, 2022 2:01 am
I would be interested in the code, if you could. Is it on Github?
I think it's this one. https://github.com/FastLED/FastLED/blob ... alette.ino

I use it to drive Neopixel LEDs, I buy the waterproof strings on Ebay.

TheGreenAnger
Chief Pilot
Chief Pilot
Posts: 3286
Joined: Fri Jul 15, 2022 11:40 pm
Location: Unfashionable end of the Western Spiral

Re: The really boring and totally pointless snippets thread V

#7 Post by TheGreenAnger » Tue Dec 06, 2022 6:51 am

llondel wrote:
Mon Dec 05, 2022 1:47 am
Evening all, the rain departed early, so it was relatively warm and sunny for most of today. I took the opportunity to put up the external lights. I use the waterproof LED strips, 5m long, and this year bought a complete new set, which is just as well because the previous set took some damage this year. Previously I'd had two of them driven from an Arduino, but this year I installed five strips across the whole width of the house and tweaked the Arduino code slightly to cope with the extras. Looks fairly good.

I also figured out how the code works, so in theory I could put up Halloween colours for next year too.
Has anybody here serially linked the Raspberry Pi using the Thonny Python IDE and the Arduino IDE (C++ code framework)?

It would be an interesting combination given the Pi's internet link capability.

Before this question is shunted off to some forgotten technical page here let me also say that it is 0 degrees Celsius here and that I had a delicious 3 bean salad for breakfast.

EGSS 060616Z 0606/0712 35006KT 9999 FEW045 PROB30 TEMPO 0606/0608 0800 FG BKN001 TEMPO 0612/0619 BKN008 BECMG 0619/0622 BKN007 PROB30 TEMPO 0619/0712 8000 BKN004
My necessaries are embark'd: farewell. Adieu! I have too grieved a heart to take a tedious leave.

talmacapt
Capt
Capt
Posts: 656
Joined: Fri Aug 06, 2021 9:29 am
Location: Finland
Gender:

Re: The really boring and totally pointless snippets thread V

#8 Post by talmacapt » Tue Dec 06, 2022 9:13 am

TGA

Perhaps you should try the raspberrypi forums.

There are plenty of people there who will certainly give you suggestions and maybe someone has done something similar before.

Separately, it is Independence Day here in Finland, a public holiday but the only excitement will, if you are so inclined, be watching the party at the Presidential "Castle" on the tv.

The usual list of runners and riders enjoying the taxpayers' largesse.

I have put the flag up and will tidy up the, surprisingly small (meteorology is not an exact science, aka the forecasters got it wrong), snow deposits.

A warm -1c this morning.

TheGreenAnger
Chief Pilot
Chief Pilot
Posts: 3286
Joined: Fri Jul 15, 2022 11:40 pm
Location: Unfashionable end of the Western Spiral

Re: The really boring and totally pointless snippets thread V

#9 Post by TheGreenAnger » Tue Dec 06, 2022 10:51 am

talmacapt wrote:
Tue Dec 06, 2022 9:13 am
TGA

Perhaps you should try the raspberrypi forums.

There are plenty of people there who will certainly give you suggestions and maybe someone has done something similar before.
Cheers talmacapt, I eventually found a very good site that clearly sets out how to link the two cards serially. Precisely what I was looking for.


https://www.arrow.com/en/research-and-e ... on-via-usb
My necessaries are embark'd: farewell. Adieu! I have too grieved a heart to take a tedious leave.

talmacapt
Capt
Capt
Posts: 656
Joined: Fri Aug 06, 2021 9:29 am
Location: Finland
Gender:

Re: The really boring and totally pointless snippets thread V

#10 Post by talmacapt » Tue Dec 06, 2022 11:00 am

That is interesting TGA, I have bookmarked it to read later.

I tinker, from time to time, with rpis and arduinos various.

Not today, it has started snowing and I may have a busy afternoon/evening.

We shall see!!

talmacapt
Capt
Capt
Posts: 656
Joined: Fri Aug 06, 2021 9:29 am
Location: Finland
Gender:

Re: The really boring and totally pointless snippets thread V

#11 Post by talmacapt » Tue Dec 06, 2022 12:05 pm

TGA

I have read your link and it got me thinking that what may, possibly, be simpler is to use a raspberrypi pico board and, perhaps, do away with the arduino.

I had not appreciated what the pico does but my interest is now piqued.

Something to keep me occupied when it is cold outside.

TheGreenAnger
Chief Pilot
Chief Pilot
Posts: 3286
Joined: Fri Jul 15, 2022 11:40 pm
Location: Unfashionable end of the Western Spiral

Re: The really boring and totally pointless snippets thread V

#12 Post by TheGreenAnger » Tue Dec 06, 2022 3:32 pm

talmacapt wrote:
Tue Dec 06, 2022 12:05 pm
TGA

I have read your link and it got me thinking that what may, possibly, be simpler is to use a raspberrypi pico board and, perhaps, do away with the arduino.

I had not appreciated what the pico does but my interest is now piqued.

Something to keep me occupied when it is cold outside.
You are onto something there as it seems brings all the flexibility of the microcontroller and the ARM processor onto one board with all of the following without the need to serially connect two devices/boards.

https://www.raspberrypi.com/products/raspberry-pi-pico/
1 mm × 51 mm form factor
RP2040 microcontroller chip designed by Raspberry Pi in the UK
Dual-core Arm Cortex-M0+ processor, flexible clock running up to 133 MHz
264kB on-chip SRAM
2MB on-board QSPI flash
2.4GHz 802.11n wireless LAN (Raspberry Pi Pico W and WH only)
26 multifunction GPIO pins, including 3 analogue inputs
2 × UART, 2 × SPI controllers, 2 × I2C controllers, 16 × PWM channels
1 × USB 1.1 controller and PHY, with host and device support
8 × Programmable I/O (PIO) state machines for custom peripheral support
Supported input power 1.8–5.5V DC
Operating temperature -20°C to +85°C (Raspberry Pi Pico and Pico H); -20°C to +70°C (Raspberry Pi Pico W and Pico WH)
Castellated module allows soldering direct to carrier boards (Raspberry Pi Pico and Pico W only)
Drag-and-drop programming using mass storage over USB
Low-power sleep and dormant modes
Accurate on-chip clock
Temperature sensor
Accelerated integer and floating-point libraries on-chip
My necessaries are embark'd: farewell. Adieu! I have too grieved a heart to take a tedious leave.

User avatar
admin2
Capt
Capt
Posts: 738
Joined: Sun Aug 23, 2015 4:13 pm
Location:

Re: The really boring and totally pointless snippets thread V

#13 Post by admin2 » Tue Dec 06, 2022 3:59 pm

If the ensemble would like the micro-chippers to have a thread of their own, please advise. I have spare time.

User avatar
Wodrick
Chief Pilot
Chief Pilot
Posts: 8366
Joined: Sun Aug 23, 2015 8:23 am
Location: Torrox Campo, Andalucia.
Gender:
Age: 74

Re: The really boring and totally pointless snippets thread V

#14 Post by Wodrick » Tue Dec 06, 2022 4:15 pm

admin2 wrote:
Tue Dec 06, 2022 3:59 pm
If the ensemble would like the micro-chippers to have a thread of their own, please advise. I have spare time.
I, for one, have no idea what they are rambling about :(

TheGreenAnger
Chief Pilot
Chief Pilot
Posts: 3286
Joined: Fri Jul 15, 2022 11:40 pm
Location: Unfashionable end of the Western Spiral

Re: The really boring and totally pointless snippets thread V

#15 Post by TheGreenAnger » Tue Dec 06, 2022 4:24 pm

admin2 wrote:
Tue Dec 06, 2022 3:59 pm
If the ensemble would like the micro-chippers to have a thread of their own, please advise. I have spare time.
That's very kind of you Admin2, given that there are other kindred spirits here I feel a potential zener breakdown diode moment coming on which will allow the current of our thoughts to flow (backwards if necessary), if we have a separate thread. ;)))
My necessaries are embark'd: farewell. Adieu! I have too grieved a heart to take a tedious leave.

User avatar
Woody
Chief Pilot
Chief Pilot
Posts: 10270
Joined: Tue Aug 25, 2015 6:33 pm
Location: Sir Kenny Dalglish Stand
Age: 59

Re: The really boring and totally pointless snippets thread V

#16 Post by Woody » Tue Dec 06, 2022 7:39 pm

And then of course I’ve got this terrible pain in all the diodes down my left side.”
When all else fails, read the instructions.

TheGreenAnger
Chief Pilot
Chief Pilot
Posts: 3286
Joined: Fri Jul 15, 2022 11:40 pm
Location: Unfashionable end of the Western Spiral

Re: The really boring and totally pointless snippets thread V

#17 Post by TheGreenAnger » Tue Dec 06, 2022 7:53 pm

Woody wrote:
Tue Dec 06, 2022 7:39 pm
And then of course I’ve got this terrible pain in all the diodes down my left side.”
We shall have to rectify that which ails you Woody!
My necessaries are embark'd: farewell. Adieu! I have too grieved a heart to take a tedious leave.

User avatar
admin2
Capt
Capt
Posts: 738
Joined: Sun Aug 23, 2015 4:13 pm
Location:

Re: The really boring and totally pointless snippets thread V

#18 Post by admin2 » Tue Dec 06, 2022 8:39 pm

That's very kind of you Admin2, given that there are other kindred spirits here I feel a potential zener breakdown diode moment coming on which will allow the current of our thoughts to flow (backwards if necessary), if we have a separate thread. ;)))
Does that translate?

User avatar
Fox3WheresMyBanana
Chief Pilot
Chief Pilot
Posts: 13177
Joined: Thu Sep 03, 2015 9:51 pm
Location: Great White North
Gender:
Age: 61

Re: The really boring and totally pointless snippets thread V

#19 Post by Fox3WheresMyBanana » Tue Dec 06, 2022 8:41 pm

It'll be popular if you start it.

User avatar
admin2
Capt
Capt
Posts: 738
Joined: Sun Aug 23, 2015 4:13 pm
Location:

Re: The really boring and totally pointless snippets thread V

#20 Post by admin2 » Tue Dec 06, 2022 8:52 pm

Ta - I don't speak TGAese =))

Post Reply