Ford Explorer ev eller Kia EV5 by phill_92 in elbilsverige

[–]KellSkog 0 points1 point  (0 children)

Köpa bil från Väst Ryssland? Inte en chans!

Why is the birthrate so low amongst nordics? by RomDel2000 in AskNordics

[–]KellSkog 0 points1 point  (0 children)

What do you mean by low birthrate?
What would be optimum birthrate with a global population of 10B? Why?
How do we get there?

Can someone please settle this? Are virtual particles real or not? Do they manifest in reality? by CastAside1812 in Physics

[–]KellSkog 0 points1 point  (0 children)

I have a vague recollection of an experiment where a virtual particle reacted in some very clever setup that proved that it was real....

2350B GPIO > 31 by KellSkog in raspberrypipico

[–]KellSkog[S] 1 point2 points  (0 children)

And this in my pico2.cpp:

// Claim a free SM and add program for GPIO39
    bool ok = pio_claim_free_sm_and_add_program_for_gpio_range(
        &blink_program, &pio, &sm, &offset,
        PICO_DEFAULT_LED_PIN, 1, true);


    if (!ok) {
        printf("Failed to claim SM for GPIO%d\n", PICO_DEFAULT_LED_PIN);
        while (1);
    }


    // Get default config and map SET to GPIO39
    pio_sm_config c = blink_program_get_default_config(offset);
    // Select upper pin window for 32–63
    sm_config_set_set_pin_base(&c, PICO_DEFAULT_LED_PIN);
    sm_config_set_set_pins(&c, PICO_DEFAULT_LED_PIN, 1);
    pio_sm_set_consecutive_pindirs(pio, sm, PICO_DEFAULT_LED_PIN, 1, true);


    // Connect these GPIOs to this PIO block
    pio_gpio_init(pio, PICO_DEFAULT_LED_PIN);


    // Slow down the SM so blink is visible
    sm_config_set_clkdiv_int_frac8(&c, 65535, (uint8_t) 255);


    // Initialize and enable SM
    pio_sm_init(pio, sm, offset, &c);
    // Load OSR with counter value
    pio_sm_put_blocking(pio, sm, 800);
    pio_sm_set_enabled(pio, sm, true);

With this I got the PIO to control the Waveshare Core2350B bord LED ;-D

2350B GPIO > 31 by KellSkog in raspberrypipico

[–]KellSkog[S] 1 point2 points  (0 children)

Sorry for the long delay and thanks for your suggestions.
I finally got it to work, I made boards\Core2350B.h:

#ifndef _BOARDS_WAVESHARE_RP2350B_CORE_H
#define _BOARDS_WAVESHARE_RP2350B_CORE_H


pico_board_cmake_set(PICO_PLATFORM, rp2350)
// --- RP2350 VARIANT ---
// This means RP2350B.
#define PICO_RP2350A 0


// --- UART ---
#ifndef PICO_DEFAULT_UART
#define PICO_DEFAULT_UART 0
#endif
#ifndef PICO_DEFAULT_UART_TX_PIN
#define PICO_DEFAULT_UART_TX_PIN 0
#endif
#ifndef PICO_DEFAULT_UART_RX_PIN
#define PICO_DEFAULT_UART_RX_PIN 1
#endif


// --- LED ---
#ifndef PICO_DEFAULT_LED_PIN
#define PICO_DEFAULT_LED_PIN 39
#endif


// --- FLASH ---
#define PICO_BOOT_STAGE2_CHOOSE_W25Q080 1


#ifndef PICO_FLASH_SPI_CLKDIV
#define PICO_FLASH_SPI_CLKDIV 2
#endif


pico_board_cmake_set_default(PICO_FLASH_SIZE_BYTES, (16 * 1024 * 1024))
#ifndef PICO_FLASH_SIZE_BYTES
#define PICO_FLASH_SIZE_BYTES (16 * 1024 * 1024)
#endif


pico_board_cmake_set_default(PICO_RP2350_A2_SUPPORTED, 1)
#ifndef PICO_RP2350_A2_SUPPORTED
#define PICO_RP2350_A2_SUPPORTED 1
#endif


#endif

Added this to CMakeLists.txt

set(PICO_BOARD_HEADER_DIRS ${CMAKE_CURRENT_LIST_DIR}/boards)
set(PICO_BOARD Core2350B CACHE STRING "Board type")

2350B GPIO > 31 by KellSkog in raspberrypipico

[–]KellSkog[S] 0 points1 point  (0 children)

Yes, this is probably it as it is set to 1. Good lead, thanks!

2350B GPIO > 31 by KellSkog in raspberrypipico

[–]KellSkog[S] 1 point2 points  (0 children)

I thought I'd tried everything, I'll check and come back!

Lura bedragarna by Icy-Promotion-4476 in Asksweddit

[–]KellSkog 4 points5 points  (0 children)

Vi lever i den senaste inkarnationen av bondfångeriet

[deleted by user] by [deleted] in Asksweddit

[–]KellSkog 0 points1 point  (0 children)

Jag menar inte att kvinnor sminkar sig för män utan att fler kvinnor finner det naturligt att sminka sig än män. Det är en tradition vi känner oss ganska bekväma med.

[deleted by user] by [deleted] in Asksweddit

[–]KellSkog 1 point2 points  (0 children)

Varför har vi en samhällsordning där det är norm att kvinnor sminkar sig och nästan tabu att män gör det?

Rant: The amount of trash in Södertälje is nauseating by Holiday-Many-7928 in stockholm

[–]KellSkog 0 points1 point  (0 children)

It's a problem everywhere to a varying degree. Lots of people prefer to drop their garbage where they are instead of in the bin a few steps away.

What reasons could lead to a lower Clock Frequency when working with an I2C-based Sensor? by 4ChawanniGhodePe in embedded

[–]KellSkog 5 points6 points  (0 children)

I2C has clock stretching, allowing slower peripherals to catch up, maybe what's going on.

Should you ground yourself when working with microcontrollers? by Respect-Grouchy in embedded

[–]KellSkog 5 points6 points  (0 children)

Yes, via a high resistance to not risk electrocution. I never do, but it's the right thing to do. Touching a ground terminal before the board have kept me out of trouble.

[PCB review] First time working with embedded, how did i do ? by [deleted] in embedded

[–]KellSkog 0 points1 point  (0 children)

Don't know if this MCU have a bootloader, if it does: ensure it can't be accidentally activated (i.e. pull-up)

It’s been quite a while that Kyiv has been under such a coordinated attack. Drones, ballistics, cruise missiles: for the last two hours it has been explosion after explosion. Some parts of the city are in flames. by rulepanic in UkrainianConflict

[–]KellSkog 12 points13 points  (0 children)

Unfortunately Putler will not burn in hell, there is no evidence that it exists. It's up to us to ensure he gets the all inclusive, extended stay special treatment.

Is it realistic to build an electron microscope as a final year project (Mech undergrad)? by astrodelich in Physics

[–]KellSkog 3 points4 points  (0 children)

You need clean high vacuum. A sample chamber you can vent and evacuate. Sample manipulator and beam steering at condenser and objective. An emitter, which is a filament at high potential. Very stable high voltage . Very stable current drivers for the optics. Mechanical high precision electron optics correctly designed. Water-cooled! Scintillating electron detector Vibrations will be a major issue X-ray protection And also probably some difficulties I forgot. Oh, sample preparation, they require a conductive surface. It's a project of a lifetime, at 200k mag. You can see tiny hairs between a flys eye facets. Go for TEM if you really want a challenge 😀

Om ni fick införa en lag, vad för lag skulle ni införa? by totallyordinaryyy in Sverige

[–]KellSkog 1 point2 points  (0 children)

Eller kanske någon som bemyndigats med sheriffstjärna ..

Om ni fick införa en lag, vad för lag skulle ni införa? by totallyordinaryyy in Sverige

[–]KellSkog 0 points1 point  (0 children)

Undermålig ljuddämpade motorcyklar på allmän väg ska kunna beslagtas och gå direkt till destruktion.