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


Forums

  • 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

Calendars

  • Community Calendar

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


AIM


MSN


Website URL


ICQ


Yahoo


Jabber


Skype


Location


Interests

Found 14 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() spi.open(0,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 https://github.com/annem/AD7193) * ************************************************************************/ #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. Hello all, I am trying to set up a CAN communication between a ZYBO Z7 Board with a PmodCAN Controller (connected on JE) and a Raspberry PI 3 using a Niren CAN Module as Controller. Letting 2 Raspberries communicating which each other via SocketCAN works fine, both can send and receive CAN data. Now if I try to let the Zybo communicate with the Raspberry using the example codes for transmit and receive data there seems to be no data on the bus. Neither the Zybo receives any data from the RPi nor the RPi from the Zybo. I have created a block design and tried the example codes according to the guide from the digilentinc website here . The LoopBack example does work as intended, Tera Term shows the messages being send, fetched and received. Just when I try to send data from the RPi the Zybo waits endlessly and any data send out from the Zybo wont be caught by the RPi. I have tried different bitrates to no avail. Any help or directing towards the right path in case i am way off in what i am trying is greatly appreciated. The block design is attached. Cheers
  3. I'm trying to communicate with a Digilent JTAG-SMT1 on an older Xilinx KC705 from a Raspberry Pi 3 and I've successfully been able to communicate with it via cmd line. Now I want to convert the 2-wire demo to a 4-wire demo since the SMT1 can only support 4-Wire JTAG. The only problem is that I've had a hard time understanding what the difference between the two is. I just need a push in the right direction since I've gone through the API trying to understand it and I've made very little progress. Thank you for your time.
  4. 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.
  5. 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.
  6. 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: http://catherineh.github.io/programming/2016/11/15/raspberry-pi-to-fpga-communication-example
  7. 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 install.sh executable. Please help , thank you. ,Chad
  8. 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
  9. 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
  10. eltigremax

    eltigremax

    Hi, Is LabVIEW 14 required to use Linx on Raspberry pi? I have 2016
  11. 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
  12. 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,
  13. 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.
  14. 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: https://www.labviewmakerhub.com/doku.php?id=learn:tutorials:libraries:linx:3-0:raspberry-pi-setup 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?