Search the Community

Showing results for tags 'arduino'.



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 and the WaveForms software
    • 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

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


AIM


MSN


Website URL


ICQ


Yahoo


Jabber


Skype


Location


Interests

Found 51 results

  1. I've been trying to learn how to use the AD2 Logic Analyser. I got it to work with Serial.println("Hello world!"). I've learned that the Base: selection is critical to capturing the data. If you get it wrong, you get Framing Errors and the wrong characters. Now I am trying to use the Logic Analyser with an Arduino Uno running a clock/date ino that displays on a 16x2 LCD. I do not have the LCD connected, but when I wrote the program it was and it worked perfectly. I have also tried an ino that displays Hello World on the top line of the LCD. My connection is described below. I have tried several different setups in the Logic section of Waveforms and I am not able to capture ascii data. I've tried spi, spi mosi/miso, UART, and a few others. I have also tried to just add Signal lines to the connections below. With that, I am able to see the waveforms, but not the data. Is it possible to read the data with the AD2 and Waveform? The ino notes say to connect the Arduino to the LCD as follows. The number after the dash is the AD2 logic connection wire. I.E. I have a jumper from Arduino Digital pin 12 to AD2 Logic wire 0 and so on. As the LCD is not physically connected. some of the connections in the ino were not used (as noted). * LCD RS pin to digital pin 12 - 0 * LCD Enable pin to digital pin 11 - 1 * LCD D4 pin to digital pin 5 - 2 * LCD D5 pin to digital pin 4 - 3 * LCD D6 pin to digital pin 3 - 4 * LCD D7 pin to digital pin 2 - 5 * LCD R/W pin to ground - (Not Used) * LCD VSS pin to ground - (Not Used) * LCD VCC pin to 5V - (Not Used) I have a jumper from the Android ground to the AD2 Ground. Thanks JohnnyG
  2. I just plugged in this board and to test it out. My intent is to use it in a RS422 format, but will need to understand what changes I need to make later. I've opened up the arduino sketch and uploaded it to my AST-CAN485 from Sparkfun. I modified Digilent's the code so it uses the alternative software serial library. Other than that, it's all the same. When I run the code and open up the serial monitor, the loopback is actually happening in the hardware. I can unplug the looped wires and still get a message back. So the echo example code seems to not work properly. Any aid in understanding this would be great. PmodRS485-MPIDE-demo1.ino
  3. Dear All, I am confused about the calibration process of PModIA module with Arduino board. I am using a program from Github, please check that. Also tell me the use of SEL pin in the board. Can you please tell me step by step procedure... ad5933-test.ino
  4. Hi, I am using example code that I got from GitHub to try to read the impedance through Arduino. On the reference guide that digilent provides, there are a series of steps you have to take to calculate the correct impedance. All of those functions are already written, but I do not know how to calibrate the AD9533. I know it says something about a reference resistance, phase, etc., but I am unsure if I am supposed to put the reference resistance in between the SMA connectors and then once it has done a sweep to calculate the gain factor. Am I supposed to insert the reference resistor first, then take it out post-calibration? Am I then able to measure unknown resistance? Help please! Best, J
  5. Hi guys: I need know how create a Custom Command in LINX for read a encoder of two square pulses from the digital pins of Arduino in LabVIEW. Thanks.
  6. I have been playing with the Digilent DMM shield and trying to understand how the shield and the ic hy3131 work. My question is about the multiplication factors which are used for converting the adc value to real value. For example, the multiplication factor in the library for 5V DC range is: 125e-1/1.8/8388608 If I'm correct, in 5V DC range the input signal is divided by 10 and fed into the adc whose reference voltage is 1.2V, so my question is why we multiply the value by 12.5? Shouldn't it be 12.0 instead because the reference voltage is 1.2V?
  7. Hello, my goal of my project is to communicate with a BLE 4.2 Module in a smart Lamp with the help of an Arduino and the Pmod BLE. I am using the Arduino because I want to automate the process of connecting to the lamp. The Pmod is later supposed to send commands to the BLE Module of the lamp to turn it off and on or change the colors. I did not get really far yet. In fact I am still stuck with example code. I'm using a Pmod BLE (https://reference.digilentinc.com/reference/pmod/pmodble/start) which is connected to an Arduino Due. The Serial Pins of the Due have 3,3V. I connected Ground of the Pmod to Ground of the Arduino, VCC of the Pmod to the 3,3V Power Pin of the Arduino and Rx of the Pmod to Tx1 of the Arduino (Pin 18) and Tx of the Pmod to Rx1 of the Arduino (Pin 19). As far as I know this is enough to let them communicate with each other. I never worked with an Arduino or anything like that before, so let me know if I already made a mistake. I included the library (which can be found on the website of the link above) to the Arduino IDE and then connected the programming port of the Arduino with my Windows 10 Laptop. I tried the example code of the library, but I have problems with it. Here is the Code: #include "BLE.h" BLE bt; void setup() { // Initialize Serial to print to Serial Monitor Serial.begin(115200); Serial.println("Begin program..."); // Initialize PmodBLE. Serial1 is the serial port used to commuinicate with PmodBLE bt.begin(Serial1, 115200); } void loop() { // Read data from PmodBLE, then print it to Serial Monitor Serial.println(bt.readSentence(Serial1)); // Send string to PmodBLE bt.send(Serial1,"Hi! I was sent using PmodBLE! :)"); } Here is what I did after that: 1. I opened the serial monitor which said: "Begin program..." That's okay so far 2. I opened the App "BLE Terminal" on my Android Smartphone and connected to the Pmod 3. On the screen of the App I could read "Hi! I was sent using PmodBLE! :)". That's also good 4. I sent "hi" from the App to the Pmod. 5. Somtimes I got something written on the serial monitor right after that, but other times I had to disconnect the App from the Pmod first and then I got something on the serial monitor. The problem is what I got on the serial Monitor. I attached a Screenshot because I was not abel to paste it in here. I cannot explain why I get these symbols. The beginning seems right. I tried other baudrates but that was even worse and I tried other things than CR and somtimes I got other symbols. I also tried using Cool Term on my Laptop. It has other symbols and sometimes it writes "Begin programm..." twice, for example like that: Begin prograBegin program... %CONNECT,1,5AF7BA28D3D1%%CONN_PARAM,0006e.......Ì.. ùÿÿÿÌ.. 5...²....P..G...Ì.. P. Y...A...P. Ì.. A`2˜Ý![Ù}...N Has anybody an idea what is wrong? What I really wanted to do in first place is to get into command mode with the Pmod connected to the Arduino. I did not find any examples how to do that. I tried to do it with the serial monitor but the command "$$$" does not seem to get through. So if you know any examples for that or if you have a hint how to do that I really would appreciate it. Thanks for reading!
  8. Hi, i am a newbie and need help regarding the control system that i am doing at the moment. I try to connect PmodNAV with Arduino UNO and followed this tutorial: https://reference.digilentinc.com/learn/software/tutorials/digilent-core-install/start. Unfortunately, i get this error: "PmodNAV_ArdUNO:31: error: 'LSM9DS1' does not name a type". I already installed the required version of Arduino (1.6.9) as they said newer version might come with the compatiblity issue. Can anyone help me regarding this problem? Thank you very much for your time on considering my problem.
  9. Hi, I've been trying to get the PMOD DA2 (just Channel 1 for now) working on a fleet of Arduino Leonardos via the ICSP header. I'm getting bizarre (jumpy, non-monotonic) voltages out of it and I'm stumped. Things get particularly squirrely around outputting 2048 counts (half scale) - I do believe that my upper/lower byte math is correct, so i think the issue is with the SPI writing/sequencing. Has anyone had any luck putting a DA2 on a Leonardo via ICSP? I've attached my (not working) test sketch. Any idea what's wrong? I poked around the web and this forum, but can't seem to find any working examples or advice. This is my first attempt at using the ICSP port, so it's possible that I've not done it properly. For a moment I did think that specifically defining MSBFIRST would fix it, but it didn't. I'm also not 100% sure about the clock phase and polarity settings (SPI_MODE3) - what you see in the code is from an example that I found (here: https://www.hackster.io/56141/using-the-pmod-da2-with-arduino-uno-e47768 - but that doesn't seem to work for me either). /************************************************************************ * FILENAME: PMOD_DA2 * * Leonardo Pins: * * Chip Select (CS): Leonardo DIO Pin 10 (to DA2 pin 1) * Serial Clock (SCK): Leonardo ICSP Pin 3 (to DA2 pin 4) * MOSI (Data): Leonardo ICSP Pin4 (to DA2 pin 2) * ************************************************************************/ Ideas or suggestions? Where'd I go wrong? Bruce PMOD_DA2.ino EDIT: I've attached a scope trace of the output when I use the following code (snippet) - ramping to 4000 counts in 250 count increments: // OUTPUT & RAMP VARIABLES const int AnalogMaxValue = 4000; // hardcoded max DAC value, proportional to FLOW RATE (motor velocity), range is 0 to 4095 const int AnalogStepSize = 250; const int StepDelayTime = 10; // [milliseconds] delay between analog updates during ramp-up, milliseconds const int SPI_write_delay = 5 ; // [milliseconds] (delay after writing data, before asserting ChipSelect) int upper_byte = 0x00; // upper byte of speed command, to be sent via SPI port to PMOD_DA2 int lower_byte = 0x00; // lower byte of speed command, to be sent via SPI port to PMOD_DA2 int i = 0; // test variable void setup() { // set up pin definitions pinMode(PMOD_CS_Pin, OUTPUT); // PMOD chip select (for Channel #1, Channel #2 is not being used) // set up SPI port SPI.begin(); // initialization of SPI port SPI.setDataMode(SPI_MODE3); // configuration of SPI communication in mode 3 SPI.setClockDivider(SPI_CLOCK_DIV16); // configuration of clock at 1MHz SPI.setBitOrder(MSBFIRST); Write_To_DAC(0); // write zero to the DAC via SPI to initialize } void loop() { for(i=0; i<=AnalogMaxValue; i=i+AnalogStepSize){ Write_To_DAC( i ); // write the Analog value to the DAC via SPI delay(StepDelayTime); } }
  10. Hi, I am trying to install Arduino IDE with the Digilent Core on a Windows 10 machine. I've tried different Versions from 1.6.8 to 1.9beta. When I try to use the Additional Boards Manager URL it fails at the Signature check. If I install it manually the IDE is not able to find "/bin/pic32-g++.exe". Where do I have to put the files under "chipkit-core" ? Is there a working json-file for automatic installation ? What am I doing wrong ? Thanks for help Markus
  11. Hi, I want to connect Pmod to Arduino Uno. From Arduino pins we get 5V so does this refer only to power supply (which we have on Arduino board) or for others pins too? Is it safe to connect it directly to Arduino or I have to use voltage dividerfor other pins? Thank you.
  12. Hi all, I am brand new to FPGAs and am finding the documentation more confusing than enlightening regarded this issue. I am having considerable difficulty getting my PYNQ-Z1 board to output a voltage through the Arduino IO ports. Currently I have a complete circuit from Arduino IO 0 to a breadboard with an LED and resistor in series, and it connects back to the Arduino ground port. My code is as follows: In [1]: from pynq.overlays.base import BaseOverlay base = BaseOverlay("base.bit") from pynq.lib.arduino import Arduino_IO In [2]: x=Arduino_IO(base.ARDUINO,0,"out") x.write(1) However, I am getting an attribute error, which reads as follows: AttributeError ---->2 x=Arduino_IO(base.ARDUINO,0,"out") /opt/python3.6/lib/python3.6/site-packages/pynq/lib/arduino/arduino_io.py in __init__(self,mb_info,index,direction) ---->97 self.microblaze.start() Attribute Error: 'Arduino' object has no attribute 'start' What is "start" and how can I fix my code to properly output voltage? Thanks for your time.
  13. I am not able to interface PmodCLP with arduino UNO. Code provided on the website is compiling but lcd is showing nothing. Please provide me the working code and image.
  14. Hi Is PmodCLP compatible with the Hitachi HD44780 driver ?
  15. Good day, My graduation assignment is a prototype of a localization module to be used inside a greenhouse. The method that I am using is Time Difference of Arrival. The two signals that are part of it are radio frequency via an XBee and ultrasonic signal via a HC-SR04. My goal is to use four beacons and one tag to establish the localization prototype. Currently, I am facing a problem that I cannot solve which is letting the HC-SR04 communicate with one another. The goal is let one(tag) HC-SR04 work( https://www.hqew.net/news/news-33872https://www.hqew.net/news/news-33872 ) as a transmitter and the other (beacons) as receivers. Therefore, I am able to send an ultrasound signal and time the duration thereof. Furthermore, I am able to calculate the difference between the XBee and the Ultrasound units. Once, this is executed the distance can be obtained between I hope this provides clarity of what I am doing, and I kindly ask you for support. Thank you in advance for any help you are able to provide. BR, Erino N.B. Is it possible for the HC-SR04 to work as a receiver? If not, what are the possibilities to let an ultrasound module work as a receiver or transmitter?
  16. Hello, I am unclear on whether the PmodIA works with Arduino. If I get the digilent arduino core will I be good to go, or do I need a digilent board to use it? Also, is it possible to modify the pmodia to use it on lower frequencys/impedance so it could be used for batteries? Thank you!
  17. Hello, I am trying to send oscilloscope data from the Analog Discovery 2 to the Arduino Uno. Would there be a way I could do this so that the Arduino could read it in live time? Miranda
  18. Hi Anyone, I need your help in hurry, I'm trying to connect Arduino Due with LINX in LabView, but I couldn't found firmaware for my board, is there any suggestion for me?
  19. Dear Forum Colleagues, I have a Digilent Arty S7 board and would like to integrate an Arduino shield that I own but am cautious as the Arty user manual states "Note: The Arty S7 is not compatible with shields that output 5V digital or analog signals. Driving pins on the Arty S7 shield connector above 5V may cause damage to the FPGA.". The shield I bought is the Velleman LCD Keypad and the instruction pdf is here Has anyone used something like this before and can provide some advice? I assume the Arduino shield is 5v but the sentence above seems to contradict itself. The shield does mount to the Arty S7 properly (but I haven't powered it up). regards Rod
  20. I am finally getting my arty running and have written or modified existing VHDL code and configured it to the FPGA with great success. I am wondering if there are references upon connecting to the arduino usb host shield. I am also wondering how soon the arty A7-100 will be available. Sincerely, DC
  21. Dear Team of Digilent. I am currently working with an MZ OpenScope with the Arduino IDE. I was able to load the Blink program on the shield. But now I am limited, because of the OpenScope.h file I only found some pin declared. // some gpio pins #define PIN_SD_DET PORTD, (1 << 1) // RD1, pin 36 #define PIN_INT_MRF PORTG, (1 << 8) // RG8, pin 59 #define PIN_HIB_MRF LATD, (1 << 13) // RD13, pin 60 #define PIN_RST_MRF LATA, (1 << 4) // RA4, pin 61 #define PIN_WP_MRF LATA, (1 << 14) // RA14, pin 62 #define PIN_LED_1 LATJ, (1 << 4) // RJ4, pin 13 #define PIN_LED_2 LATJ, (1 << 2) // RJ2, pin 48 #define PIN_LED_3 LATJ, (1 << 1) // RJ1, pin 49 #define PIN_LED_4 LATJ, (1 << 0) // RJ0, pin 50 #define PIN_BTN1 PORTG, (1 << 12) // G12 pin 42 #if defined (NO_IO_BUS) #define PIN_CS_SD U3STA, (1 << 13) // U3STAbits.UTXINV #define PIN_CS_MRF U4STA, (1 << 13) // U4STAbits.UTXINV #else #define PIN_CS_SD LATD, (1 << 14) // RD14, pin 52 #define PIN_CS_MRF LATB, (1 << 15) // RB15, pin 56 #endif Will they have the complete PinOut table of the OpenScope for the Arduino developers? I want to make programs with digital outputs and analog inputs. Thank you very much. Greetings.
  22. Hi, I've build a board using the pic32MX795L, the same as the Chipkit max32 for research purpose. I can upload any code using the pickit 3 and a generated code from MPLAB X, but when I upload the bootloader from Digilent site, nothing happens. I manage to build a code in MPLAB to test the operation of the circuit and every thing seams ok, I can send and receive data over the UART1 @115200 baud with no problem. But when I upload the firmware with pickit, the device is not recognized by pic32prog. the message after a few seconds is "No target found." even when I hit the reset during upload. There is any way that I could use the source code to Max32 to test the compilation and upload from my MPLAB that I know that's working? Best regards
  23. Hello, I have some questions about the Analog Shield: - What is the dimension of an analog shield plugged on top of an Arduino Uno? (Total dimension of the assembly, for planning the size of the enclosure) - What is the pitch of the headers on top of the board, where the AO pins are routed? Is it standard 2.54-mm pitch? Is there a guide somewhere what is the location of these headers for plugging some boards in them? (Like for routing some BNC plugs to the wall of the box) - A very stupid question in the end: do I need to separately power the Analog shield when coupled with an Uno, or it can get enough supply from the pins of the Arduino? Thanks
  24. Hi, I have purchased the Multi-Touch Display Shield, see link below for actual model. https://reference.digilentinc.com/reference/add-ons/mtdshield/start I have downloaded the Arduino IDE folder, installed the mtds & MyDisp libraries and followed the QuickStart.txt. When I open an example from either of those libraries and attempt to compile, it fails and lists loads of errors (Please see .txt file attached where I have copied error messages). I have my Arduino Uno selected and the libraries installed, there are errors in the followings directories: \Arduino\libraries\MyDisp\Examples\MyDispDemo\MyDispDemo1\MyDispDemo1.pde \Arduino\libraries\mtds\MtdsCore.cpp \Arduino\libraries\mtds\MtdsFs.cpp \Arduino\libraries\mtds\MtdsHal.cpp Does anyone know what is causing this, I have tried both Arduino 1.6.9 & 1.8.5 but it shows the same errors. Any help would be appreciated. Thanks, Evan Error compiling for board ArduinoGenuino Uno - Error Message.txt