Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Nov 14 13:24
    CloudyPadmal edited #105
  • Nov 14 13:24
    CloudyPadmal labeled #141
  • Nov 14 13:24
    CloudyPadmal assigned #141
  • Nov 14 13:24
    CloudyPadmal opened #141
  • Nov 14 13:23
    CloudyPadmal edited #105
  • Nov 14 13:23
    CloudyPadmal edited #105
  • Nov 14 13:23
    CloudyPadmal edited #105
  • Nov 14 13:23
    CloudyPadmal edited #105
  • Nov 14 13:23
    CloudyPadmal edited #105
  • Nov 14 13:23
    CloudyPadmal edited #105
  • Nov 12 09:23

    CloudyPadmal on main

    feat: porting spi module functi… (compare)

  • Nov 12 09:23
    CloudyPadmal closed #137
  • Nov 10 19:30

    dependabot[bot] on npm_and_yarn

    (compare)

  • Nov 10 19:30
    dependabot[bot] closed #699
  • Nov 10 19:30
    dependabot[bot] commented #699
  • Nov 10 19:30
    dependabot[bot] labeled #700
  • Nov 10 19:30

    dependabot[bot] on npm_and_yarn

    Bump electron from 10.4.2 to 18… (compare)

  • Nov 10 19:30
    dependabot[bot] opened #700
  • Nov 07 21:14
    CloudyPadmal edited #105
  • Nov 07 21:13
    CloudyPadmal ready_for_review #137
Alexander Bessman
@bessman
Green line is entire sensor exposed, orange completely covered, blue half-covered.
(Is there a way to post images directly in the chat? Drag-and-drop doesn't seem to work.)
Mario Behling
@mariobehling
lR0uPqY.png
@bessman Looks very good. Drag and Drop works for me.
nielek2
@nielek2
great!
blue is half the sensor covered? so this is more than one reading cycle?
nielek2
@nielek2
1 line readout period is 3694 elements, are you reading each of them twice?
Alexander Bessman
@vgfsrhkbgd:matrix.org
[m]
Yes, this is two readout periods.
Almost three actually: readout period is 7.4 ms, the oscilloscope trace is 20 ms.
nielek2
@nielek2
tcd1304.png
there are 46 readings which should be dropped as they are dummy outputs. is it possible to identify/address them?
Alexander Bessman
@bessman
The data rate is 500 kS/s, so the dummy elements are the first 64 µs and final 28 µs of the signal, starting from when the ICG clock goes high.
apoorva-raj
@apoorva-raj
Hi, I attended the PS Lab meeting yesterday to talk about the android app but there wasn't any discussion going on regarding that. So I'm wondering if I should continue working on the current app or wait till the new version of the hardware is released.
RafaelLeeImg
@RafaelLeeImg
There won't be too much modifications between the new and old hardware. Most of Anrdroid work can be done in advance.
Harshit Bansal
@harshitbansall
Hey Guys, im a student, i wanna contribute to this project, I am new so please walk me through it.
CyReVolt
@CyReVolt:matrix.org
[m]
Hi, welcome! For a start, please have a look at https://docs.pslab.io/

Here's for the firmware part, looking quite interesting:
https://gill.net.in/posts/pic32-blink-led-rust/

For the love of XXX I couldn’t get it to work for me to even test if my setup is wired correctly. At that point I turned to open-source solutions.

Getting away from the not-so-well-working Microchip tools is awesome! \o/

Padmal
@CloudyPadmal
Nice!
apoorva-raj
@apoorva-raj
apoorva-raj
@apoorva-raj
Mario Behling
@mariobehling
apoorva-raj
@apoorva-raj
RafaelLeeImg
@RafaelLeeImg

I read through the source code of pslab-desktop, found nothing about initialization sequence in javascript or the .py scripts inside the pslab-desktop directory
Then I go a little deeper found that the pslab-desktop use python script in pslab

Then I modified the python script in the serial_handler.py to print something but found nothing showed up in my terminal. Where did all the stdout redirected?

I've removed the .pyc and tested again, nothing changed.
What shall I do next?

strace -f -F -o /dev/shm/unzip/del/pslab_strace /usr/bin/pslab
1749800 stat("/home/USER/.local/lib/python3.9/site-packages/pslab-2.4.0-py3.9.egg/pslab", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
1749800 stat("/home/USER/.local/lib/python3.9/site-packages/pslab-2.4.0-py3.9.egg/pslab/serial_handler.py", {st_mode=S_IFREG|0644, st_size=16100, ...}) = 0
1749800 stat("/home/USER/.local/lib/python3.9/site-packages/pslab-2.4.0-py3.9.egg/pslab/serial_handler.py", {st_mode=S_IFREG|0644, st_size=16100, ...}) = 0
1749800 openat(AT_FDCWD, "/home/r/.local/lib/python3.9/site-packages/pslab-2.4.0-py3.9.egg/pslab/pycache/serial_handler.cpython-39.pyc", O_RDONLY|O_CLOEXEC) = 6
1749800 fstat(6, {st_mode=S_IFREG|0644, st_size=15726, ...}) = 0

RafaelLeeImg
@RafaelLeeImg
I've tried to capture serial communication of V5 and V6.
The VID and PID matches. It's not the problem of change CP2102.
RafaelLeeImg
@RafaelLeeImg
By the way, where's the repository of pslab desktop qt?
Padmal
@CloudyPadmal
Hello @RafaelLeeImg , what's the problem you're having?
everthu
@everthu
Hi, I'am new to PSLab and I like the board, but I have some questions regarding the different hardware revisions.
When will the v6 hardware commercially available? and if so, wil the v5 hardware still be commercially available? I'am in the phase of designing a new testsystem and I have to decide which board to use.
Regards, Evert Huijben, Remoticom
CyReVolt
@CyReVolt:matrix.org
[m]
Here's a tweet to action regarding the PSLab desktop app advancement: https://twitter.com/OrangeCMS/status/1488247815516078082?t=swlhlWXcbEVMewhHtmQktw&s=19
I just ran the app on the new laptop running Pop!_OS (System76' Ubuntu fork), working just fine. :-)
CyReVolt
@CyReVolt:matrix.org
[m]
Gamozo did an oscilloscope hack session, quite interesting:
https://twitter.com/gamozolabs/status/1489256493182377984?t=as59fzn_ZQ8-rJDiOLLP2A&s=19
Hong Phuc Dang
@hpdang
We are at fosdem at this weekend here https://chat.fosdem.org/#/room/#fossasia-stand:fosdem.org
Hong Phuc Dang
@hpdang
We are running our regular Pslab meeting at 17:00 CET as usual directly at our fosdem stand :)
@CloudyPadmal @RafaelLeeImg @mariobehling @bessman @nielek2 @orangecms
Daniel aka CyReVolt
@CyReVolt:matrix.org
[m]
What iiif...
You could use the PSLab app in your web browser, without installing it?
Let's say you go to app.pslab.io and then control it via Bluetooth
we'd just need to simplify adding a Bluetooth radio and wire things up :-)
Mario Behling
@mariobehling
This message was deleted
1 reply
Padmal
@CloudyPadmal
@CyReVolt:matrix.org we can also look at the possibility of using WebUSB https://wicg.github.io/webusb/ for connection..
1 reply
I've shared the idea over at #sigrok:libera.chat :-)
RafaelLeeImg
@RafaelLeeImg
After some modification, the oscilloscope works.
I'm reading the python3.9/site-packages/pslab-2.4.0-py3.9.egg/pslab/instrument/oscilloscope.py and power_supply.py
I'm wondering why the abstraction of the two instruments is totally different, why the oscilloscope command is mainly decoded on the PIC24, but power source code sends commands to control I2C bus directly?
Since I'm using two 2-channel DACs on SPI bus, shall I change the abstraction level of the code?
The best practice of abstraction is not overlay between different layers. For example: layer 1, PSLab, layer 2, instrument(oscilloscope), layer 3, (hardware devices MCP4728, ADC, etc).
RafaelLeeImg
@RafaelLeeImg
The newest PSLab desktop version cannot set oscilloscope gain for both V6 and V5, I've changed the voltage range already. Is it not implemented? I've seen python code to change gain, but I cannot verify whether the PSLAB electron app called the function.
RafaelLeeImg
@RafaelLeeImg
I found that the pslab-python is updated, oscilloscope SPI control is added. I'll try with the new one.
Daniel aka CyReVolt
@CyReVolt:matrix.org
[m]
talk for FOSSASIA Summit submitted ✅🥳
Daniel aka CyReVolt
@CyReVolt:matrix.org
[m]
@RafaelLeeImg: see here https://github.com/fossasia/pslab-desktop/blob/development/public/electron.js#L102 to enable debugging with the background processes that are used to talk to the Python library, just set debug: true
RafaelLeeImg
@RafaelLeeImg
20220225-164229-pslab.png