Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Dec 05 22:05
    bessman synchronize #140
  • 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
RafaelLeeImg
@RafaelLeeImg
20220711-031102-pslab-SAR_DAC_3_4_error.png
At the 3/4 of full DAC range, this error also occurs, that means it's the limit of SAR DAC, there is nothing we can do to improve.
Daniel aka CyReVolt 🐒
@CyReVolt:matrix.org
[m]
The former Python+Qt app is further down in history @RafaelLeeImg:
fossasia/pslab-desktop@692b4af
Mario Behling
@mariobehling
@RafaelLeeImg The older version of PSLab Python using Qt is in the repository history e.g. here https://github.com/fossasia/pslab-python/tree/1c554a9f7a0135b9a8bcc4eb6ccb82719049d12a
Mario Behling
@mariobehling
Alexander Bessman
@bessman
Mcbootflash 3.0.0 released! Should be the final feature release for now, some documentation still TODO.
2 replies
RafaelLeeImg
@RafaelLeeImg

Regarding our discussion about RISC-V https://www.computerenhance.com/p/the-problem-with-risc-v-v-mask-bits

Do you understand the situation described in the article? Do you think that is something related to our choice between ARM and RISC-V?

Mario Behling
@mariobehling
Of course it is related as this background shows that there still seem to be challenges around the RISC-V spec.
RafaelLeeImg
@RafaelLeeImg
Not really. In most daily use cases, who cares about the instruction set of AVX512 on AMD64 architectures, only in some neuron network, video encoding decoding applications these will be used. The issue that the article described is not even related to our applications.
1 reply
Daniel aka CyReVolt 🐒
@CyReVolt:matrix.org
[m]
And the article is widely disputed as mostly FUD.
Daniel aka CyReVolt 🐒
@CyReVolt:matrix.org
[m]
riscv/riscv-v-spec#811
the discussion on the matter (a bit wild...)
Daniel aka CyReVolt 🐒
@CyReVolt:matrix.org
[m]
So we can just prerender a static page, and no active server component is necessary? :)
RafaelLeeImg
@RafaelLeeImg
I'm not quite sure. In modern website design, the server cares only the content of the webpage, the layout is all done locally by the browser.
1 reply
RafaelLeeImg
@RafaelLeeImg
Today I tested the DAC MCP4822, they works.
I tried to modify the pslab-python library for the new driver, somehow, there is no good way to do that. The reasons are the following:
1, There are commands defined in the firmware, some of them are like OSCILLOSCOPE_SetPGAGain, POWER_SOURCE_SetPower, these are in the same abstraction layer, but the weird part is that the power source are actually driven by a command I2C_CommandSend, that's called abstraction leaking, that makes it hard to correct, the firmware and the pslab-python both need correction.
2, the class abstraction is totally wrong for pslab-python. For example, the layers are like pslab{oscilloscope{EMPTY},power_source{pv1{I2C:MCP4728},pv2{I2C:MCP4728},pv3{I2C:MCP4728},pcs{I2C:MCP4728}}}, the class abstraction is totally different for different instruments. Thus makes it nearly impossible to correct the errors in a elegant way. We are using MCP4822(SPI) to replace MCP4728{I2C}, that will cause the previous code invalid. The good way is to make abstraction like this pslab{oscilloscope{channel1, channel2, channel3, channel4},power_source{channel1, channel2, channel3, channel4}}, leave the decoding code in the firmware. But due to the limited performance of float point calculation, that is also not good for the current hardware.
3 replies
Next, I'll remove 1 MCP4822.
RafaelLeeImg
@RafaelLeeImg
How to test the RTC and SD card?
I didn't modify any schematic related to those components, if it's already functional, I'll skip those components.
Daniel aka CyReVolt 🐒
@CyReVolt:matrix.org
[m]
IIRC the RTC is connected via I2C, try scanning for it for a start? I also encountered some randomness and funkiness on the bus, sometimes finding the RTC or not. Not sure if that was specific to the first revision of the v6 board.
RafaelLeeImg
@RafaelLeeImg

20220711-031102-pslab-SAR_DAC_3_4_error.png

--PSLab ADC zero-crossing error around 2048 data points. What command did Rafael send to get this data?
--x, y1 = scope.capture(channels='CH1', samples=512, timegap=1)
Then plot with matplotlib or my QT front end I wrote for DAC my self. In normal conditions, the full scale are like 4096 bits, so the noise cross 2048 is no more than 0.5% of the screen height. It's will be easily ignored. The 2048 is 0b100000000000 and 2047 is 0b11111111111 so nearly all the bits are different, that means the comparison result of DAC inside SAR ADC is quite different. And the noise is actually within the noise in the specification wrote in the PIC24 datasheet. So, we can do nothing about it.

Alexander Bessman
@bessman
Released: mcbootflash 4.1.0, now with documentation at https://mcbootflash.readthedocs.io/en/latest/
Should be the final (for realz, pinky-swear) version for a while, unless I find something that needs urgent fixing.
Also released: pslab-python 2.6.0b0, with mcbootflash integration and some fixes for v6 hardware. It's a pre-release, so to install it pip with you must pass the --pre flag.
With pslab-python 2.6.0b0, firmware can be flashed using the command pslab flash --port <portname> <path_to_hexfile>
No need to specify baudrate :)
Mario Behling
@mariobehling
Cool!
RafaelLeeImg
@RafaelLeeImg
Please test the RTC and SD card before mass production.
RafaelLeeImg
@RafaelLeeImg
I removed one MCP4822 and sent the updated PCB to manufacturer, use one MCP4822 for both voltage source and current source. I asked for quote for MCP6S21, none of the suppliers give reasonable price.
3 replies
Alexander Bessman
@vgfsrhkbgd:matrix.org
[m]
I'll join today's meeting about 20 min late.
RafaelLeeImg
@RafaelLeeImg
20220724-031840.png
Alexander Bessman
@vgfsrhkbgd:matrix.org
[m]
I won't be able to join today's meeting, unfortunately.
Alexander Bessman
@bessman
Forgot to mention during the meeting, but in fossasia/pslab-firmware#133 I also remove the Unified Host Bootloader Application, since we don't need it anymore now that mcbootflash is complete.
Alexander Bessman
@bessman
Repository split is done! Bootloader now lives at https://github.com/fossasia/pslab-bootloader, and https://github.com/fossasia/pslab-firmware contains only the application-layer firmware.
I would like rename the default branch of https://github.com/fossasia/pslab-firmware from 'bootloader' to 'main', but have insufficient permission level to do that @mariobehling
I would also like to unprotect the old 'master' branch and rename it 'legacy', as well as protect the new (renamed) 'main' branch.
2 replies
Alexander Bessman
@vgfsrhkbgd:matrix.org
[m]
Oh, and a heads up to the other firmware devs: Since the cmake-microchip submodule has moved, you may need to reinitialize it. @CloudyPadmal @RafaelLeeImg
Padmal
@CloudyPadmal
Perfect! Thank you @bessman !!
I was thinking now that there's a separate repository for bootloader and it's pretty much complete, shall we make a release in the repo?
Alexander Bessman
@bessman
Good idea. Should we call it v1.0?
Padmal
@CloudyPadmal
Yes, sounds good!
Daniel aka CyReVolt 🐒
@CyReVolt:matrix.org
[m]
Woop woop! πŸ₯³
Wilfred Almeida
@WilfredAlmeida
Hi there
@RafaelLeeImg invited me here
Daniel aka CyReVolt 🐒
@CyReVolt:matrix.org
[m]
Hi! πŸ‘‹
Mario Behling
@mariobehling
@bessman unfortunately I am out today and will not be able to join the meeting
Padmal
@CloudyPadmal
SDCard Check.png
I tested the SDCard and it can be read and written.
Mario Behling
@mariobehling
:thumbsup:
Mark Cribbs
@MarkCribbs
Hey guys, quick question please. I have been to every site listed on the pslab.io website looking for a place to order the Pocket Science Lab Board. Every one says it is out of stock. Any idea when it will come available again? This stuff is right up my alley and I'm so glad to have stumbled across it on Github. Great work!
1 reply
RafaelLeeImg
@RafaelLeeImg
I won't be join the meeting today.
RafaelLeeImg
@RafaelLeeImg
20221029-173731_pslab_msop_sop_adapter.jpg
Anurag verma
@anurag629
Hi, I want to contribute to pslab. Help me how I get to start with it. I have knowledge of Python, Django, Django rest framework, ML, and Deep Learning. :)
Daniel aka CyReVolt 🐒
@CyReVolt:matrix.org
[m]
Hi @anurag629 - there is an introduction to PSLab here in the docs: https://docs.pslab.io/introduction.html