Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Jun 17 00:00

    dependabot[bot] on npm_and_yarn

    (compare)

  • Jun 17 00:00
    dependabot[bot] closed #698
  • Jun 17 00:00
    dependabot[bot] commented #698
  • Jun 17 00:00
    dependabot[bot] labeled #699
  • Jun 17 00:00
    dependabot[bot] opened #699
  • Jun 17 00:00

    dependabot[bot] on npm_and_yarn

    Bump electron from 10.4.2 to 15… (compare)

  • Jun 11 15:06
    CloudyPadmal review_requested #126
  • Jun 11 11:49
    CloudyPadmal unlabeled #126
  • Jun 11 11:49
    CloudyPadmal ready_for_review #126
  • Jun 10 13:29
    IamRavikantSingh commented #1972
  • May 30 05:12

    dependabot[bot] on gradle

    (compare)

  • May 30 05:12
    dependabot[bot] closed #2344
  • May 30 05:12
    dependabot[bot] commented #2344
  • May 30 05:12
    dependabot[bot] review_requested #2350
  • May 30 05:12
    dependabot[bot] review_requested #2350
  • May 30 05:12
    dependabot[bot] labeled #2350
  • May 30 05:12
    dependabot[bot] labeled #2350
  • May 30 05:12
    dependabot[bot] opened #2350
  • May 30 05:12

    dependabot[bot] on gradle

    chore(deps): bump gradle from 7… (compare)

  • May 23 07:24
    dependabot[bot] edited #2344
RafaelLeeImg
@RafaelLeeImg
20220327-000348-simulation4.png
Add C5 to 5pF to compensate the C4. The voltage devider of R3//C5 is the same with C4//R1, in this situation, the frequency response is flat.
Daniel aka CyReVolt 🐢
@CyReVolt:matrix.org
[m]
And I've released a new version of Fiedka the firmware editor, https://fiedka.app/
it can now edit and save UEFI based firmware, and also analyze AMD PSP and coreboot filesystems 🐙
Michael Deffner
@Co_eus:matrix.org
[m]
Hey everyone, I'm having some troubles with a project & pslab python library, is it fine to ask some questions here or can you point me to the right place? You work is awesome, by the way 👍️
Alexander Bessman
@vgfsrhkbgd:matrix.org
[m]
This is the right place to ask.
Daniel aka CyReVolt 🐢
@CyReVolt:matrix.org
[m]
I've updated the issue on WebUSB, libusb, Sigrok, monorepo and what I'm experimenting with:
fossasia/pslab-desktop#697
Michael Deffner
@Co_eus:matrix.org
[m]

I'm want to test transmission through diy guitar effects, so pslab wavegenerator -> some device -> pslab oscilloscope, everything automated via python. I can of course send sinusodial signals (one frequency at a time) from the waveformgenerator to the oscillopscope, but that's inefficient. One could do a sinus-sweep through the audible spectrum or use white noise.

This is how I basically create my waveform:

from pslab import WaveformGenerator
wavegen = WaveformGenerator()
wavegen.load_function("SI1", lambda x: 0.5*np.sin(x), [0, 2*np.pi])
wavegen.generate(channels = 1, frequency = 100)

I don't understand how exactly the frequency enters the formula. For a sin-sweep, I want to modulate the frequency with another sinusodial function with a low frequency - but in the lambda function above the frequency is not stated explictly. Is there a way to pass something like this to load_function:

def myfunction(frequency, phase, time):
    return np.sin(frequency * time + phase)

Another way would be to somehow generate whitenoise from one output...that would basically mean I have to replace the sin function with np.random.random()or something...but there I have the same problem, that I don't understand exactly how the frequency and timestep is passed to the function.

I hope this is understandable, and thank you so much in advance!

Alexander Bessman
@vgfsrhkbgd:matrix.org
[m]

To load more complicated functions than the load_function method allows (such as functions of more than one variable), you can use the load_table method instead. It let's you load a 512 values long list into the pslab's memory, the values of which the pslab will do its best to reproduce when you call generate. It loops over the 512 values every 1/frequency seconds.

However, the pslab is not able to accurately reproduce signals that contain harmonics above 5 kHz. You can try to load 512 values from np.random.random into memory and see what you get, but I'm not sure how good the result will be. It's definitly an interesting experiment!

1 reply
Alexander Bessman
@vgfsrhkbgd:matrix.org
[m]
Please let us know what the result is and if it does what you need it to do!
apoorva-raj
@apoorva-raj
@vgfsrhkbgd:matrix.org Can you share the shipping details of the PSLab hardware so that I can track the package?
Alexander Bessman
@vgfsrhkbgd:matrix.org
[m]
It's not traceable. Swedish postal service doesn't offer traceable shipping outside EU.
MOHIT GUPTA
@MohitGupta121
@apoorva-raj I also want that for testing hardware what's procedure for that?
Daniel aka CyReVolt 🐢
@CyReVolt:matrix.org
[m]
I won't join this Saturday, since we're having spring(); break(), an event at the Bochum hackerspace Das Labor, just FYI.
So we'll meet again at FOSSASIA Summit. 🥳
Alexander Bessman
@bessman
Getting a 404 on the meeting link.
Padmal
@CloudyPadmal
Same here..
Mario Behling
@mariobehling
sorry, missed that.
We updated the system and links got changed
apoorva-raj
@apoorva-raj
Alexander Bessman
@vgfsrhkbgd:matrix.org
[m]
I won't be able to join the meeting today. I have a few points I had intended to bring up:
  • Building the firmware with cmake works now (fossasia/pslab-firmware#132).
  • It depends on https://github.com/Elemecca/cmake-microchip as a submodule. We should fork that repo under the fossasia github area in case it gets deleted or something.
  • I suggest we split the pslab-firmware repo. The contents of pslab-core.X should stay in the current repo while the contents of pslab-bootloader.X should go into a new pslab-bootloader repo.
Daniel aka CyReVolt 🐢
@CyReVolt:matrix.org
[m]
This is marvellous, almost 25k lines of junk dropped!
Alexander Bessman
@vgfsrhkbgd:matrix.org
[m]
Well, the "junk" is mostly the MCC configuration, which we no longer need but did need in the past.
It's wasn't even needed for building with MPLAB, only for running MCC which we did a couple of times right at the start of the firmware overhaul. So we could have removed it a while ago.
Daniel aka CyReVolt 🐢
@CyReVolt:matrix.org
[m]
Alexander Bessman
@bessman
Hi @mariobehling, could I have write permission for https://github.com/fossasia/cmake-microchip, please?
Mario Behling
@mariobehling
@bessman done
Alex L
@alexl:kde.org
[m]
Hi all, is it possible to connect two smartphones with Jack audio, use PSLab app as wave generator on one device and view it in the oscilloscope on the other one?
Padmal
@CloudyPadmal
Hi @alexl:kde.org , we haven't yet finished the work to make PSLab use audio jack as a wave generator output fossasia/pslab-android#1976. So it's not possible at the moment.
1 reply
Alexander Bessman
@bessman
I just flashed firmware to the PSLab using nothing but Python :)
Padmal
@CloudyPadmal
Wow! That's super cool!! 😎 I wanna hear more about it
I originally wrote this as part of pslab-python, but realized that it's generalizable to any device running Microchip's 16-bit bootloader. So I split it into a separate package. I'll add it as a dependency for pslab-python.
I also need to add some docs and tests.
Padmal
@CloudyPadmal
I just checked and it looks pretty cool!
Mario Behling
@mariobehling

https://twitter.com/mariobehling/status/1531119488556355584

PocketScienceLab dev @bessman

released #mcbootflash a #Python #FOSS #OpenSource tool for flashing #firmware to devices running
@MicrochipTech's MCC 16-bit bootloader. Can be automated and used as a library. https://github.com/bessman/mcbootflash

Daniel aka CyReVolt 🐢
@CyReVolt:matrix.org
[m]
Daniel aka CyReVolt 🐢
@CyReVolt:matrix.org
[m]
I shared mcbootflash in the OSF community. :)
Daniel aka CyReVolt 🐢
@CyReVolt:matrix.org
[m]

From a reply:

there's a neglected PIC24 project on my bench, will check it out!
Also randomly amazing, in this PIC bootloader I came across:

https://github.com/BroadwellConsultingInc/BootloaderPIC16F15214/blob/main/BootloaderPIC16F15214.X/main.c#L404

they check if VDD provided is under 2.2v
if so stay in the bootloader!
I've never even considered such an implementation 🤯
is a neat trick if you don't want to burn a gpio pin...

1 reply
Alexander Bessman
@bessman
I added instructions for how to use the TCD1304 code with PSLab v5 to the PR: fossasia/pslab-python#211
Mario Behling
@mariobehling
:thumbsup:
Alexander Bessman
@bessman
:smiley:
$ pslab flash -p /dev/ttyUSB0 pslab-firmware.hex 
Flashing pslab-firmware.hex.
Got bootloader attributes:
Max packet length: 256
Erase size:        2048
Write size:        8
Got program memory range: 0x001800:0x02a7fe.
Erased flash area 0x001800:0x02a7fe.
Flashing HEX segment 1: 0x001800:0x00c954.
100%  88.7 KiB |########################################| Elapsed Time: 0:00:20
Self verify OK.
Daniel aka CyReVolt 🐢
@CyReVolt:matrix.org
[m]
Nice! 🥳