Search the Community

Showing results for tags 'raspberry pi'.

More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


  • News
    • New Users Introduction
    • Announcements
  • Digilent Technical Forums
    • FPGA
    • Digilent Microcontroller Boards
    • Non-Digilent Microcontrollers
    • Add-on Boards
    • Scopes & Instruments
    • LabVIEW
    • FRC
    • Other
  • General Discussion
    • Project Vault
    • Learn
    • Suggestions & Feedback
    • Buy, Sell, Trade
    • Sales Questions
    • Off Topic
    • Educators
    • Technical Based Off-Topic Discussions

Find results in...

Find results that contain...

Date Created

  • Start


Last Updated

  • Start


Filter by number of...


  • Start





Website URL







Found 12 results

  1. Hi there, I am in need of help communicating with my Pmod AD5 using the SPI on raspberry pi 3. I am pretty new to SPI and have troubleshooted and searched the web for solutions over the past week but have yet to solve this problem. Here are some of the steps that I have done: 1) managed to read values using the Arduino Library linked on the product page and with an Arduino UNO, by connecting VCC of Pmod AD5 to 5V (I am not sure what I cannot read anything when connected to 3.3V) 2) understood what SPI is about and what the Arduino Library is doing (or what I think was logical) - read through the whole AD7193 datasheet to understand the registers etc.. 3) extracted the outputs (Binary/hexa format) that the Arduino was sending to the Pmod AD5, understood them, and attempted to use them in raspberry pi with the spidev library but with no progress .. 4) tested by raspberry pi's SPI (they are enabled) using the same spidev library and successfully communicated and got values from a simpler ADC: mcp3008 using this 5) checked the wiring to ensure everything is intact and correctly connected For my application, I intend to read ADC values up at speeds up to 1kHz over 2 channels and hence have chosen this Pmod AD5. For testing wise, I have connected a potential divider across A1 and A2 on the AD5 and am able to read the voltage changes when using Arduino but not in raspberry pi 3. Here's my python code using the spidev on raspberry pi 3 (have connected to CE0): ####################### START OF CODE ################ import spidev import time spi = spidev.SpiDev(),0) spi.max_speed_hz = 50000 spi.mode=0b00 resp = spi.xfer2([0xFF, 0xFF, 0xFF, 0xFF, 0xFF]) print('Resetting...', resp) time.sleep(0.5) ##resp = spi.xfer2([0x08, 0x18, 0x00, 0x60]) ##print('Enable DAT_STA Bit', resp) ##time.sleep(0.5) resp = spi.xfer2([0x10, 0x00, 0x01, 0x10]) print('Set PGA Gain = 1, Buffer = 1', resp) time.sleep(0.5) ##resp = spi.xfer2([0x08, 0x18, 0x00, 0x64]) ##print('Setting filter rate select bits to 100', resp) ##time.sleep(0.5) ## ##resp = spi.xfer2([0x08, 0x98, 0x00, 0x64]) ##print('Initiate internal calibration, starting w zero-scale', resp) ##time.sleep(0.5) ## ##resp = spi.xfer2([0x08, 0xB8, 0x00, 0x64]) ##print('Full-scale calibration...', resp) ##time.sleep(0.5) while True: #choose channel resp = spi.xfer2([0x10, 0x00, 0x01, 0x00]) resp = spi.xfer2([0x58, 0x00, 0x00, 0x00]) time.sleep(0.1) print('data:', resp) ####################### END OF CODE ################ Here's what most of my output looks like when I run the code (kind of the same code regardless of whether I have or not have anything connected in A1/A2 - it is unreactive even when I connect my potential divider and change the potential): Resetting... [254, 170, 128, 193, 255] Set PGA Gain = 1, Buffer = 1 [0, 0, 0, 0] data: [0, 0, 0, 0] data: [0, 0, 0, 0] data: [0, 40, 128, 0] data: [0, 255, 255, 255] data: [255, 255, 255, 255] data: [255, 255, 255, 255] data: [255, 255, 255, 255] data: [255, 232, 191, 255] data: [255, 255, 255, 255] data: [255, 255, 255, 255] data: [255, 255, 255, 255] data: [255, 255, 255, 255] data: [255, 232, 191, 255] data: [255, 255, 255, 255] data: [255, 255, 255, 255] data: [255, 255, 255, 255] data: [255, 255, 255, 255] data: [255, 232, 191, 255] data: [255, 255, 255, 255] data: [255, 255, 255, 255] data: [255, 255, 255, 255] data: [255, 255, 255, 255] data: [255, 232, 191, 255] data: [255, 255, 255, 255] data: [255, 255, 255, 255] data: [255, 255, 255, 255] data: [255, 255, 255, 255] data: [255, 232, 191, 255] data: [255, 255, 255, 255] etc... etc... This was the code I used to successfully read from the simpler MCP3008 ADC: ####MCP3008 ## adcnum = 0 #### r = spi.xfer2([1, (8+adcnum)<<4,0]) ## r = spi.xfer2([1, 0x80, 0]) ## print(r) #### result = ((r[1]&3) << 😎 +r[2] #### print(result) ## time.sleep(0.1) For more clarity, this is the Arduino code that I was using and got working with UNO: /************************************************************************ * * Test of the Pmod * ************************************************************************* * Description: Pmod_AD5 * The result of the A / D conversion of the AIN1 channel is displayed on the serial monitor. * * * Material * 1. Arduino Uno * 2. Pmod AD5 (do not touch the jumper and * dowload library * ************************************************************************/ #include <SPI.h> // Call of libraries #include <AD7193.h> AD7193 AD7193; // Creation of the object AD7193 unsigned long valeur; float tension; void setup() { Serial.begin(9600); // initialization of serial communication Init_AD7193(); } void loop() { valeur = AD7193.ReadADCChannel(0); // conversion A/N on input 1 valeur = valeur >> 8; // Extraction of value tension = AD7193.DataToVoltage(valeur); // Recovery of tension Serial.println(""); Serial.print("Valeur="); Serial.print(valeur); Serial.print('\t'); // tabulation Serial.print("Tension="); Serial.print(tension); Serial.println("V"); } // Initialisation du module Pmod AD5 void Init_AD7193(void) { AD7193.begin(); // initialization of Pmod AD5 module AD7193.AppendStatusValuetoData(); // configuration of Pmod AD5 module AD7193.SetPGAGain(1); AD7193.SetAveraging(100); AD7193.Calibrate(); AD7193.ReadRegisterMap(); } Would highly appreciate if anyone can help to give me tips on how to proceed or whether I am doing or understanding anything wrongly. Thank you very much.
  2. actually i have been working on remote lab since last 9 months and i succed a lot inorder to minimise the setup of mine remot elab i am trying to connect mine analog discovery kit 2 with raspberry pi and i have installed the debian file of wave form setup its not working properly the issue what i am getting is the since analog discovery kit 2 is usb based oscilloscope and wave form generator so when it is plugged in with pc it is properly getting the required amount of current from the pc to usb but the same analog discovery kit 2 i am connecting with raspberry pi the current delivered from the raspberry pi is not appropriate enough to runt the analog discovery kit so how can i resolve this issue please help i could able to resolve this that i will be more efficient setup for for me to work on mine remote lab , and same thing i developing mine project on labview using the labview connection with arduino.please help.what error coming while connecting raspberry pi with analog discovery kit is inappropriate current rating PLL stop working.
  3. Hi! I need to use NI USRP-2932 for a project. Can I ask if it is possible to install NI USRP driver to the raspberry pi? I am using Raspberry pi 3 model B, with raspian Jessie OS; LabVIEW 2014, and LINX to integrate my rpi and labview.
  4. Hello all, Im new to this forum as well as new to the FPGA world. Currently i'm trying out a project that utilizes the Spartan 3e cp132 on the basys 2 to accelerate hash processing on my raspberry pi. I read somewhere that the basys 2's pmod host connector pins have 200 ohm resistors embedded to restrict current. Would it be fine for me to connect the digital spi pins of the RPI3 directly to the Pmod host pins of the basys or is the Pmod ACL2 required? In write up i read they directly connected to their fpga in similar projects but i wouldn't mind not destroying mine. Currently i have the pins attached to the JA slot except for the 3.3v wire. Directly connected:
  5. Hello, losing my mind trying to install adept 2 arm.deb for the raspberry pi. I used the dpkg --install command to unpack the .deb file. I wasn't successful in finding any executable. Please help , thank you. ,Chad
  6. I am very new to Raspberry pi and I need help regarding my R-Pi and Pmod ACL2 I would just like to test the functionality of the SPI connection and that's it I am not allowed to install any software I should just use the configure terminal I have installed the spi-dev on my R-Pi and I can't seem to find the ACL2 I'm sure I have connected them correctly Pls help Thanks in Advance
  7. Hello, I want to download Xilinx bit file from Raspberry Pi to Arty S7, and adept utility for ARM seems to be the solution for it. So, I tried the following steps and it almost seems to work except the last step. I used the same bit file with Adept System on Windows, so bit file seems to be fine, and I'm suspecting if the adept utility needs some kind of update for the database. I'm currently using digilent.adept.runtime_2.16.6-armhf.deb and digilent.adept.utilities_2.2.1-armhf.deb. Any advice will be appreciated. Thanks, Taehyun root@raspi:/home/arty# djtgcfg enum Found 1 device(s) Device: ArtyS7 Product Name: Digilent Arty S7 - 50 User Name: ArtyS7 Serial Number: 210352A6C0F8 root@raspi:/home/arty# djtgcfg init -d ArtyS7 Initializing scan chain... Found Device ID: 0362f093 Found 1 device(s): Device 0: XC7A ? T root@raspi:/home/arty# djtgcfg prog -d ArtyS7 -i 0 -f main.bit ERROR: failed to set programming file
  8. eltigremax


    Hi, Is LabVIEW 14 required to use Linx on Raspberry pi? I have 2016
  9. Hi, I'm new to this forum so hopefully this has not been asked already. We have a system that contains an embedded Raspberry Pi 2 board and Xilinx FPGAs. We would like to be able to remotely debug FPGA issues. We have been looking into the Xilinx Virtual Cable (XVC) solution. This would allow us to connect Xilinx debugging tools like Chipscope to our FPGAs over an Ethernet connection. I have seen a few implementations where GPIOs from a Raspberry Pi connected to Xilinx FPGA JTAG signals and XVC server code running on the same Raspberry Pi allow for debugging FPGAs remotely. The code I have seen bit bangs the GPIO pins which seems very inefficient. I was wondering if Digilent has a solution where a Digilent USB to JTAG module is used for the Raspberry Pi to JTAG connection instead of GPIO pins to speed things up. If there was such a solution we would ship something like a JTAG-HS2 with all our systems so we could remotely fix problems at customer sites. Does Digilent have such a solution and if not do they supply Raspberry Pi software APIs that would allow customers to develop such a solution? I took a look at the Adept 2 stuff but that looks like it's targeted at configuring FPGAs. I don't think it's for integrating with Xilinx tools. I also looked at the "Digilent Plugin for Xilinx Tools" but I don't think there is a Raspberry Pi version of the plugin and I'm not sure if the plugin will work with XVC. Thanks in advance. RL
  10. Hello, When using the SPI read/write Vi in the LINX Labview add on, I'm unable to select SPI_CE0 (GPIO8) on my Raspberry PI 3. I'm given an error that says that channel 8 isnt an option. Am I missing something simple, or is channel select 0 not available? SPI_CE1 (GPIO7) is an option, but the touch screen im connected to has two chips and I would like to be able to communicate with both of them. Thanks,
  11. aaleman

    Rpi Camera - FPGA

    HiI have been working with the Raspberry Pi Camera to make an interface with an FPGA and take the data from the camera to the FPGA memory. I want to connect the Camera Module directly with the FPGA but I have not found any document that explain the communication protocol or some procedure to make it possible to connect and configure the camera with the FPGA. If someone know any document or have an idea that can be helpful for my project I will be very grateful. Thanks.
  12. I have LabVIEW 2014 and LINX 3.0. The entire installation process went as expected. However, when trying to setup the PI 3 as indicated in timestamp 3:50 of this video: Under the menu: Tools >> Makerhub >> LINX... All I get is: Generate Firmware Libraries LINX Firmware Wizard myRIO Support I don't have the option: LINX Target Configuration Any ideas?