Jump to content
View in the app

A better way to browse. Learn more.

Tinkerunity

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

riks

Members
  • Benutzer seit

  • Letzter Besuch

Posts erstellt von riks

  1. Geschrieben

    Hi,

    I don't see any examples how to extend callback listeners or create new ones. Just an example with no meaning in Java from the documentation.

    device.addExampleListener(new BrickletServoV2.ExampleListener() {
        public void property(int value) {
            System.out.println("Value: " + value);
        }
    });

    For the servo there a 2 OOTB examples, but I want to create my own for getCurrentPosition or current used on the servo as example. How do I implement this properly ?

    Regards,
    Rik

  2. Geschrieben

    Hi rtrbt,

    I have update firmware and daemon to this version. It connects but does not show me any bricklets. Same behaviour I had on my Pi4, so I added to the /etc/brickd.conf these mapping

    bricklet.group0.spidev = /dev/spidev0.0
    
    bricklet.group0.cs0.driver = gpio
    bricklet.group0.cs0.name = gpio23
    bricklet.group0.cs0.num = 23
    
    bricklet.group0.cs1.driver = gpio
    bricklet.group0.cs1.name = gpio22
    bricklet.group0.cs1.num = 22
    
    bricklet.group0.cs2.driver = gpio
    bricklet.group0.cs2.name = gpio25
    bricklet.group0.cs2.num = 25
    
    bricklet.group0.cs3.driver = gpio
    bricklet.group0.cs3.name = gpio26
    bricklet.group0.cs3.num = 26
    
    bricklet.group0.cs4.driver = gpio
    bricklet.group0.cs4.name = gpio27
    bricklet.group0.cs4.num = 27
    
    bricklet.group0.cs5.driver = gpio
    bricklet.group0.cs5.name = gpio24
    bricklet.group0.cs5.num = 24
    
    bricklet.group0.cs6.driver = gpio
    bricklet.group0.cs6.name = gpio7
    bricklet.group0.cs6.num = 7
    
    bricklet.group0.cs7.driver = gpio
    bricklet.group0.cs7.name = gpio6
    bricklet.group0.cs7.num = 6
    
    bricklet.group0.cs8.driver = gpio
    bricklet.group0.cs8.name = gpio5
    bricklet.group0.cs8.num = 5

    After a reboot I get this in the /var/log/brickd.log and deamon is shutting down.

    2024-01-18 10:56:42.884905 <I> <bricklet_stack_linux.c:87> Using spidev backend for Bricklets (unsupported suffix 5 after 'Raspberry Pi' in /proc/device-tree/model)
    2024-01-18 10:56:42.884981 <E> <gpio_sysfs.c:77> Could not write to '/sys/class/gpio/export' to export GPIO 22: EINVAL (22)
    2024-01-18 10:56:42.884988 <E> <bricklet_stack_linux_spidev.c:78> Could not export gpio22: EINVAL (22)

    Any idea's ?

    Regards,
    Rik

     

     

     

  3. Geschrieben

    Does anyone tried to put the Hat on a Raspberry Pi working ?

    I get this error in the /var/log/brickd.log

    2024-01-16 18:06:36.731765 <I> <main_linux.c:375> Running on Linux system (sysname: Linux, release: 6.1.0-rpi6-rpi-2712, version: #1 SMP PREEMPT Debian 1:6.1.58-1+rpt2 (2023-10-27), machine: aarch64)
    libusb: warning [libusb_init] installing new context as implicit default
    2024-01-16 18:06:36.735775 <I> <bricklet.c:521> Using bricklet.* section in config file
    2024-01-16 18:06:36.735783 <I> <bricklet.c:530> Found Bricklet port A (spidev: /dev/spidev0.0, driver: gpio, name: gpio23, num: 23)
    2024-01-16 18:06:36.735835 <I> <bricklet_stack_linux.c:129> Using BCM2835 backend for Bricklets (Raspberry Pi detected)
    2024-01-16 18:06:36.735855 <E> <vcgencmd.c:185> Could not open /dev/vchiq for writing: ENOENT (2)
    2024-01-16 18:06:36.735858 <E> <bricklet_stack_linux_bcm2835.c:65> Could not read Raspberry Pi core_freq config

     

  4. Geschrieben

    Hi,

    I am trying to set the min/max memory my java program can use on the red brick.

    There is not a lot of information provided how to set it.

    I specified JVM Options:  -Xms 64M -Xmx128M

    Invalid initial heap size: -Xms 64M -Xmx128M

    Error: Could not create the Java Virtual Machine.

    Error: A fatal exception has occurred. Program will exit.

    What should be the right syntax for this ?

    Thanks,
    Rik

  5. Geschrieben ·

    bearbeitet von riks

    Ich habe 1.15 auf den Red Brick und ich habe das gleiche. Wenn ich dann auch das Java program laufen lasse dan ist CPU 100% und wird fast nicht mehr idle.

    Ist ueber 30% Last fuer den brickd normal ?

    image.thumb.png.33663c8f8e748b636d97d021f82895aa.png

    Und die CPU freq ist maximal

    Every 1.0s: cat /sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_cur_freq                                                                                                   red-brick: Thu Mar 26 16:58:26 2020

    1008000

     

     

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.