Miguee_CryptsPAD
December 9, 2023, 16:46

I am new with RaspBerry PI 4 and have many questions, could you please help me with this?

I installed Ubuntu 20.04 on this RaspBerry but when I try to download a program, like Google Chrome or whatever program I think about and try to install it, it says that the architecture (amd64) is not the one that I can run (arm64). I do not really know what this means.
illegitimate_egg
December 9, 2023, 18:49

7-segment display has a stroke when it hits a number higher than 9

Here's the code that the arduino is running, I wrote it myself:
arduino
#define latchPin 5
#define clockPin 6
#define dataPin 4
#define outputEnable 3
#define disp1 7
#define disp2 8
#define disp3 9
#define disp4 10

char *seg = (char []) {B11111100, B01100000, B11011010, B11110010, B01100110, B10110110, B10111110, B11100000, B11111110, B11110110};

byte leds = 0;
int num = 0;

void setup() {
  pinMode(latchPin, OUTPUT);
  pinMode(dataPin, OUTPUT);  
  pinMode(clockPin, OUTPUT);
  pinMode(outputEnable, OUTPUT);
  pinMode(disp1, OUTPUT);
  digitalWrite(disp1, HIGH);
  pinMode(disp2, OUTPUT);
  digitalWrite(disp2, HIGH);
  pinMode(disp3, OUTPUT);
  digitalWrite(disp3, HIGH);
  pinMode(disp4, OUTPUT);
  digitalWrite(disp4, HIGH);

  cli();
  
  TCCR1A = 0;
  TCCR1B = 0;
  
  TCCR1B |= B00000100;
  TIMSK1 |= B00000010;

  OCR1A = 31250;
  sei();
}

ISR(TIMER1_COMPA_vect) {
  TCNT1 = 0;
  num++;
}

void loop() {
    writeDisplay(num);
}

void writeDisplay(int x) {
  for (int i = 0; i < 4; i++) {
    switch (i) {
      case 0:
        leds = seg[x & 0xFF];
        updateShiftRegister();
        digitalWrite(disp1, LOW);
        delay(1);
        digitalWrite(disp1, HIGH);
        break;
      case 1:
        leds = seg[(x >> 8) & 0xFF];
        updateShiftRegister();
        digitalWrite(disp2, LOW);
        delay(1);
        digitalWrite(disp2, HIGH);
        break;
      case 2:
        leds = seg[(x >> 16) & 0xFF];
        updateShiftRegister();
        digitalWrite(disp3, LOW);
        delay(1);
        digitalWrite(disp3, HIGH);
        break;
      case 3:
        leds = seg[(x >> 24) & 0xFF];
        updateShiftRegister();
        digitalWrite(disp4, LOW);
        delay(1);
        digitalWrite(disp4, HIGH);
        break;  
    }
  }
}

void updateShiftRegister() {
  digitalWrite(outputEnable, HIGH);
  digitalWrite(latchPin, LOW);
  shiftOut(dataPin, clockPin, LSBFIRST, leds);
  digitalWrite(latchPin, HIGH);
  digitalWrite(outputEnable, LOW);
}
dum8
December 9, 2023, 16:33

im having great problems with booting my rpi

I just downloaded the default rpi systen onto my SD card and when i put it in my pi everything goes great until the welcome screen flashes for about a second and then my rpi starts shining red and the screen turns off. Please help.
zenbybosatsu
December 9, 2023, 16:32

(solved)OpenWRT using a wifi access port instead of onboard wifi.

So, I’m gonna try and turn my Pi into a router using OpenWRT. But I want to use a WAP instead of built in wifi chip or wifi dongle. Would you just connect it to the WAP with a Ethernet cable, then connect the WAP to your main router? Anddd, how would you even setup OpenWRT to use the Ethernet cable to send/receive data?
vortexen
December 9, 2023, 18:53

Trying to get usb webcam stream on website

Hi, im trying to make a small LAN website that i can easily modify, ive already gotten a small webpage up using ssh, apache, and filezilla which makes everything run smooth rn. I want to add a livestream of a usb webcam that shows a 720p ~30fps vid of my 3d printer. Ive researched a lot and found no results that allow me to do the same where i can edit server files using filezilla or smth similar to that (if someone could find me a solution like that, i would appreciate it. Anyways another solution i thought of is streaming my usb webcam to yt and embedding it on the site, so far i watched this tutorial: https://youtu.be/cRycXUIK07g and its exactly what i need BUT i dont have a raspberry pi cam. how could i get it to work for a usb webcam?
raspivid -o - -t 0 -vf -hf -fps 30 -b 6000000 | ffmpeg -re -ar 44100 -ac 2 -acodec pcm_s16le -f s16le -ac 2 -i /dev/zero -f h264 -i - -vcodec copy -acodec aac -ab 128k -g 50 -strict experimental -f flv rtmp://a.rtmp.youtube.com/live2/(stream key)
Im using a rpi 1 but have multiple rpi 1s if running both tasks is to much for the rpi 1. i unfortunately though dont have anything more recent or better. any help is appreciated, ty! ^^
dum8
December 9, 2023, 17:31

Is this just an SD card problem?

Does this just mean the SD card is broken, or my rpi?
jannik44
December 9, 2023, 18:49

(solved) how to power a picoPSU?

I noticed that my current psu isnt the most efficient option (need only up to 70watts output) so i have read a lot about picoPSUs and im planning to take a closer look to this one: https://gzhls.at/blob/ldb/9/a/7/5/ad5c00ea50547fd8c56a92034a57dbf34a65.pdf of course i need a 12V power brick for those, but the connector is different than the normal barrel connectors, what is this connector called and where can i find a power brick/adapter for that?