Page 1 of 2

Chips with everything

Posted: Mon Dec 05, 2022 1:46 am
by admin2
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............. =))

Re: The really boring and totally pointless snippets thread V

Posted: Mon Dec 05, 2022 1:47 am
by llondel
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.

Re: The really boring and totally pointless snippets thread V

Posted: Mon Dec 05, 2022 2:01 am
by Fox3WheresMyBanana
I would be interested in the code, if you could. Is it on Github?

Re: The really boring and totally pointless snippets thread V

Posted: Mon Dec 05, 2022 5:31 am
by TheGreenAnger
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!");
}
}
}

=))

Re: The really boring and totally pointless snippets thread V

Posted: Mon Dec 05, 2022 5:56 am
by TheGreenAnger
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

Re: The really boring and totally pointless snippets thread V

Posted: Mon Dec 05, 2022 7:05 pm
by llondel
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.

Re: The really boring and totally pointless snippets thread V

Posted: Tue Dec 06, 2022 6:51 am
by TheGreenAnger
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

Re: The really boring and totally pointless snippets thread V

Posted: Tue Dec 06, 2022 9:13 am
by talmacapt
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.

Re: The really boring and totally pointless snippets thread V

Posted: Tue Dec 06, 2022 10:51 am
by TheGreenAnger
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

Re: The really boring and totally pointless snippets thread V

Posted: Tue Dec 06, 2022 11:00 am
by talmacapt
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!!

Re: The really boring and totally pointless snippets thread V

Posted: Tue Dec 06, 2022 12:05 pm
by talmacapt
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.

Re: The really boring and totally pointless snippets thread V

Posted: Tue Dec 06, 2022 3:32 pm
by TheGreenAnger
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

Re: The really boring and totally pointless snippets thread V

Posted: Tue Dec 06, 2022 3:59 pm
by admin2
If the ensemble would like the micro-chippers to have a thread of their own, please advise. I have spare time.

Re: The really boring and totally pointless snippets thread V

Posted: Tue Dec 06, 2022 4:15 pm
by Wodrick
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 :(

Re: The really boring and totally pointless snippets thread V

Posted: Tue Dec 06, 2022 4:24 pm
by TheGreenAnger
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. ;)))

Re: The really boring and totally pointless snippets thread V

Posted: Tue Dec 06, 2022 7:39 pm
by Woody
And then of course I’ve got this terrible pain in all the diodes down my left side.”

Re: The really boring and totally pointless snippets thread V

Posted: Tue Dec 06, 2022 7:53 pm
by TheGreenAnger
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!

Re: The really boring and totally pointless snippets thread V

Posted: Tue Dec 06, 2022 8:39 pm
by admin2
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?

Re: The really boring and totally pointless snippets thread V

Posted: Tue Dec 06, 2022 8:41 pm
by Fox3WheresMyBanana
It'll be popular if you start it.

Re: The really boring and totally pointless snippets thread V

Posted: Tue Dec 06, 2022 8:52 pm
by admin2
Ta - I don't speak TGAese =))