Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • 08:07
    CloudyPadmal edited #83
  • 08:07
    CloudyPadmal edited #83
  • 08:07
    CloudyPadmal edited #83
  • 08:07
    CloudyPadmal edited #83
  • 08:07
    CloudyPadmal edited #83
  • 08:07
    CloudyPadmal edited #83
  • 08:07
    CloudyPadmal edited #83
  • 08:02

    CloudyPadmal on bootloader

    refactor: updated file structur… (compare)

  • Jun 16 23:15
    CloudyPadmal closed #92
  • Jun 16 23:15

    CloudyPadmal on bootloader

    refactor: added large data vari… refactor: porting set sine 1 refactor: moved used register f… and 15 more (compare)

  • Jun 16 09:40
    CloudyPadmal synchronize #92
  • Jun 15 19:45
    CloudyPadmal synchronize #92
  • Jun 15 11:37
    CloudyPadmal synchronize #92
  • Jun 14 20:27
    CloudyPadmal synchronize #92
  • Jun 14 11:56
    CloudyPadmal synchronize #92
  • Jun 14 10:20
    CloudyPadmal synchronize #92
  • Jun 14 10:17
    CloudyPadmal synchronize #92
  • Jun 14 10:11
    CloudyPadmal synchronize #92
  • Jun 09 16:50
    CloudyPadmal synchronize #92
  • Jun 09 13:45
    CloudyPadmal synchronize #92
Mario Behling
@mariobehling
What do you think about the Haasoscope? https://www.crowdsupply.com/andy-haas/haasoscope
Features & Specifications
Four high-speed ADC channels, up to 125 MSPS each, 8-bit, ~60 MHz bandwidth, BNC inputs
Switchable oversampling to make two very high speed ADC channels, up to 250 MSPS each
Intel/Altera MAX10 FPGA with 8k logic elements and 387 kb of memory (enough for 8k samples / channel for each event)
Reprogram firmware over JTAG with free Altera software for Windows or Linux (or VirtualBox on Mac)
Python user software for waveform display and control of all features, including FFT
Four gains per channel: +-4 V, +-400 mV, +-40 mV, and +-4 mV ranges, with programmable DC offset
Switchable AC/DC input, 50/1M Ohm termination for each channel
Readout over USB-serial at 1.5 Mb/s, about 20 Hz for four channels of 512 samples each, works with PCs, Raspberry Pi, Arduino, etc.
Optional USB2 hat for 20x faster readout
Optional 128 x 64 mini display with SPI interface
22 spare high-speed digital I/O (100+ MHz)
4 spare low-speed digital I/O (via I2C bus)
9 additional analog I/O, 1 MSPS (combined) at 12 bits
4 programmable LEDs and a reset button
USB powered, (or other 5 V input, switchable), ~1 Watt
6.2 x 8.9 cm (just bigger than a credit card)
CyReVolt
@CyReVolt:matrix.org
[m]
Meanwhile I ran into this:
https://www.pokitinnovations.com/
and
https://help.pokitmeter.com/hc/en-us/articles/360008793353-Is-there-a-PC-App-for-Pokit seems interesting; we could look into picking up the API
(when it becomes available, that is)
NAVEEN S R
@nkpro2000sr
My proposal for I2C and SPI,

pslab/bus/i2c.py

I2C_Primitive I2C_Master I2C_Slave
+ primitive : I2C_Primitive + primitive : I2C_Primitive
+ __init__(device: SerialHandler) + __init__(device: SerialHandler) + __init__(address: int, device: SerialHandler)
+ start(address: int, mode: int) -> int + configure(frequency:float) + ping() -> bool
+ restart(address: int, mode: int) -> int + scan() -> list[int] + read(bytes_to_read: int, reg_addr: int) -> bytearray
+ stop() + read_byte(reg_addr: int) -> int
+ wait() + read_int(reg_addr: int) -> int
+ status() -> int + read_long(reg_addr: int) -> int
+ configure(brgval: int) + write(bytes_to_write: bytearray, reg_addr: int)
+ send_byte(value: byte) -> int + write_byte(data: int, reg_addr: int)
+ send_byte_burst(value: byte) + write_int(data: int, reg_addr: int)
+ send(bytes_to_write: bytearray) + write_long(data: int, reg_addr: int)
- _read_more() -> byte
- _read_end() -> byte
+ read(bytes_to_read: int) -> bytearray
+ enable_SMBus()
+ disable_SMBus()
+ suspend(delay: int) # PULLDOWN_SCL

pslab/bus/spi.py

SPI_Primitive SPI_Master SPI_Slave
+ primitive : SPI_Primitive + primitive : SPI_Primitive
+ __init__(device: SerialHandler) + __init__(device: SerialHandler) + __init__(channel: int, device: SerialHandler)
+ start(channel: int) + set_parameters(...) + send_byte(data: int)
+ stop(channel: int) + set_mode(mode: int) # 1->byte, 2->int + send_int(data: int)
+ set_cs(channel: int, mode: int) + send(bytes_to_write: bytearray) -> bytearray
+ send_byte(value: byte) -> byte
+ send_int(value: int) -> int
+ send(bytes_to_write: bytearray) -> bytearray
Please reply your suggestions.
@bessman
1 reply
Mario Behling
@mariobehling
@nkpro2000sr Please join our weekly meeting tomorrow (Saturday) to talk about details. Thanks
CyReVolt
@CyReVolt:matrix.org
[m]
Today won't work out for me, sorry
Mario Behling
@mariobehling
https://yuml.me/diagram/plain;dir:TB;scale:120/class/%5BI2C_Primitive%5D%5E%5BI2C_Master%5D%2C%20%5BI2C_Primitive%5D%5E%5BI2C_Slave%5D%2C%20%5BI2C_Primitive%7C-_device%3A%20SerialHandler%7C%2B__init__%28device%3A%20SerialHandler%29%3B-_start%28address%3A%20int%2C%20mode%3A%20int%29%3A%20int%3B-_restart%28address%3A%20int%2C%20mode%3A%20int%29%3A%20int%3B-_stop%28%29%3B-_wait%28%29%3B-_status%28%29%3A%20int%3B-_configure%28brgval%3A%20int%29%3B-_send_byte%28value%3A%20byte%29%3A%20int%3B-_send_byte_burst%28value%3A%20byte%29%3B-_send%28bytes_to_write%3A%20bytearray%29%3B-_write_bulk%28bytes_to_write%3A%20bytearray%2Cregister_address%3A%20int%29%3B-_read_more%28%29%3A%20byte%3B-_read_end%28%29%3A%20byte%3B-_read%28bytes_to_read%3A%20int%29%3A%20bytearray%3B-_read_bulk%28bytes_to_read%3A%20int%2Cregister_address%3A%20int%29%3A%20bytearray%3B-_enable_SMBus%28%29%3B-_disable_SMBus%28%29%3B-_suspend%28delay%3A%20int%29%20%23%20PULLDOWN_SCL%5D%2C%20%5BI2C_Master%7C-_device%3A%20SerialHandler%7C%2B__init__%28device%3A%20SerialHandler%29%3B%2Bconfigure%28frequency%3A%20float%29%3B%2Bscan%28%29%3A%20list_of_int%5D%2C%20%5BI2C_Slave%7C-_device%3A%20SerialHandler%7C%2B__init__%28address%3A%20int%2Cdevice%3A%20SerialHandler%29%3B%2Bping%28%29%3A%20bool%3B%2Bread%28bytes_to_read%3A%20int%2C%20reg_addr%3A%20int%29%3A%20bytearray%3B%2Bread_byte%28reg_addr%3A%20int%29%3A%20int%3B%2Bread_int%28reg_addr%3A%20int%29%3A%20int%3B%2Bread_long%28reg_addr%3A%20int%29%3A%20int%3B%2Bwrite%28bytes_to_write%3A%20bytearray%2C%20reg_addr%3A%20int%29%3B%2Bwrite_byte%28data%3A%20int%2C%20reg_addr%3A%20int%29%3B%2Bwrite_int%28data%3A%20int%2C%20reg_addr%3A%20int%29%3B%2Bwrite_long%28data%3A%20int%2C%20reg_addr%3A%20int%29%5D
Alexander Bessman
@bessman
@Freddiscr_gitlab @JackOA_gitlab You mentioned you wanted some feedback on your code. Is it this: https://github.com/freddiscr/open-spectrometer-python/blob/master/TCD1304.py ?
kartikraj
@kartikraj
Hi everyone ,I m into android development since 6 months but I m new to open source , can someone suggest me a easy issue like any UI related ?
Jackson Adewale
@JackOA_gitlab
@bessman Hey Alex, thanks for reaching out to us. Yes, thats the latest version that Freddi and I coded.
Mario Behling
@mariobehling
@bessman There is a new PR here OpnTec/open-spectrometer-python#4 . I added you to the repo team.
Kartikay Sharma
@kartikaysharma01
Finally Received by device today.... had some fun playing around with it. Connected on android, windows and macOS. Will try and complete device connection by the week end.
1 reply
Dev Valecha
@iamdevvalecha

Finally Received by device today.... had some fun playing around with it. Connected on android, windows and macOS. Will try and complete device connection by the week end.

wow!

Mario Behling
@mariobehling
Great. Hope it works well.
RafaelLeeImg
@RafaelLeeImg

Is there any environment path I need to set first?

pslab-desktop
$ npm run react-build
npm ERR! missing script: react-build

npm ERR! A complete log of this run can be found in:
npm ERR! /home/r/.npm/_logs/2021-06-04T03_25_23_171Z-debug.log

CyReVolt
@CyReVolt:matrix.org
[m]
What are you trying to do @RafaelLeeImg ?
The build instructions are documented:
https://github.com/fossasia/pslab-desktop#building-the-app
CyReVolt
@CyReVolt:matrix.org
[m]
Ah, http://docs.pslab.io/desktop/Readme.html#building-from-source is outdated. We should fix that and just refer to the repository's instructions.
RafaelLeeImg
@RafaelLeeImg

$ npm run build
npm ERR! missing script: build

npm ERR! A complete log of this run can be found in:

I have the script in my project folder

$ git log
commit 076c639ba322bef83de8fe341fc5fee7ed41cc10 (HEAD, tag: v2.8.1)

$ pwd
/mnt/unzip/pslab-desktop
$ find . -iname "react-build"
./node_modules/.bin/react-build
./node_modules/react-build

$ npm run install
npm ERR! missing script: install

npm ERR! A complete log of this run can be found in:

$ npm run build

pslab@2.8.1 build
react-scripts build

sh: 1: react-scripts: not found
npm ERR! code 127
npm ERR! path /dev/shm/unzip/pslab-desktop
npm ERR! command failed
npm ERR! command sh -c react-scripts build

npm ERR! A complete log of this run can be found in:

CyReVolt
@CyReVolt:matrix.org
[m]
There is no script named install. It is a subcommand: npm install
Please stick with the instructions in the README
CyReVolt
@CyReVolt:matrix.org
[m]
I have updated the docs accordingly, and added references to the repo as well as to a troubleshooting thread for Windows users.
That may apply to you as well @JackOA_gitlab .

I also had to migrate Travis and adjust the config to be able to deploy again.
There is an open issue regarding Travis for pslab-python as well: fossasia/pslab-python#183
Currently, the message on Travis reads

Hi! It seems there are still plenty of builds running. We're pushing back the shutdown date to June 15th. Please consider migrating to travis-ci.com.

(see e.g. https://travis-ci.org/github/fossasia/pslab-python/builds/772108881 )

This requires someone with the necessary access rights to take care; can you have a look @mariobehling
or Alexander Bessman maybe? I can help out if you have questions, but I do not have access.
Alexander Bessman
@bessman
I added a Github Actions workflow to pslab-python, but it is not running because GH Actions are disabled. I don't have permission to enable them. @mariobehling
Padmal
@CloudyPadmal
Screenshot 2021-06-06 at 13.17.07.png
@CyReVolt:matrix.org I got this on my GitHub dashboard. I wonder if we have right permission set with gh-pages branch 🤔
CyReVolt
@CyReVolt:matrix.org
[m]
Yes, that is how it currently is.
It is not only a question of (branch) permissions, but also ownership of credentials. Ideally, the org owner(s) would control and provide them, in my view. I could create a token myself from my account and use that, but I'd prefer @mariobehling to decide.
2 replies
Kartikay Sharma
@kartikaysharma01
Can someone please update the master branch and create a new development branch(after deleting the existing one) for the libsigrok fork
@mariobehling @bessman @CyReVolt:matrix.org @CloudyPadmal
CyReVolt
@CyReVolt:matrix.org
[m]
I'll take care of it
(rebasing instead of deleting the branch ;))
done
1 reply
(it's not really necessary though... you can always rebase onto upstream on your end)
here's what I did:
git fetch upstream
git rebase upstream/master
git push fossasia 1b7d49db64449a7d2c2cdc947bc25541debe99b0:master # I could also `git push fossasia upstream/master:master`
git push fossasia aef397b203db60e4cb78ffcc3a3e72e230194c7a:development --force-with-lease
Mario Behling
@mariobehling

I added a Github Actions workflow to pslab-python, but it is not running because GH Actions are disabled. I don't have permission to enable them. @mariobehling

@bessman Added you as an admin and activated GH Actions.

Mario Behling
@mariobehling
Dear @/all we also have a mailing list for the PSLab project, where we receive updates from summer interns. Please subscribe to receive them: https://groups.google.com/g/pslab-fossasia
Alexander Bessman
@bessman
Did we say we would do a GSoC meeting today?
Mario Behling
@mariobehling
@bessman Sorry, have not scheduled it. Will check for next meeting
Alexander Bessman
@bessman
No worries, just making sure I didn't miss anything :thumbsup:
Kartikay Sharma
@kartikaysharma01
Do we let the user to set the buffer size , i.e. to choose whether to get 10-bit or 12-bit samples?
Alexander Bessman
@bessman
In pslab-python the choice is made automatically based on the capture settings. 12-bit samples are only available in single channel mode, without trigger, at 1 MSPS or less. If all of these conditions are fulfilled, we capture 12-samples, otherwise 10-bit.
NAVEEN S R
@nkpro2000sr

Regarding SPI:

Will updating SPI parameters by SPI.set_parameters affects programmable_gain_amplifier(which uses same SPI) used by oscilloscope ?

Alexander Bessman
@bessman
It shouldn't affect the currently set pga value, but it could affect the ability to change the value. As long as the new spi parameters are reasonable it should not have any detrimental effect on the pga.