FAQ Database Discussion Community


Updating ac value for Qtimer

qt,user-interface,adc
I am using qt tool for mini2440. I make a gui for i2c adc having starti2c and stopi2c. All things are working well: it reads value of signal when starti2c button press, but I want this value to be updated. I know that Qtimer can be used, but how can...

Reading an input (4096) from a directory to use in C

c,beagleboneblack,beagleboard,adc
I'm trying to read an ADC (12 bit which is 0 - 4095) input from my AIN0 channel, and using that as an "int" so I could use it in a math function. Is this possible? The directory I'm referring to is "sys/bus/iio/devices/iio:device0/in_voltage0_raw" on the Beaglebone Black Debian Wheezy. Currently,...

Reading raw audio values from ADC chip on raspberry pi

python,audio,raspberry-pi,adc
I wired up the MCP3008 ADC chip to an Electret Microphone and to my pi. I'm reading the input using bit-banging in python, and I'm getting an integer from 0-1024. I followed this tutorial to do the bit-banging: https://learn.adafruit.com/reading-a-analog-in-and-controlling-audio-volume-with-the-raspberry-pi/connecting-the-cobbler-to-a-mcp3008 My question is how do I take this integer and convert...

5 years later - NXP ADCs aren't working

c,microcontroller,adc,general-purpose-registers,nxp-microcontroller
Some time ago I was trying to programm the ADC on the NXP's LPC3143 withouth sucess. Now 5 years later I buy myself an LPC4088 Quick start board and try it with LPC4088. And again the same problem persists with ADC! I just can't seem to make it work while...

How to fix error message “__builtin_avr_delay_cycles expects a compile time integer constant make”?

c,adc
My program isn't being compiled using a GCC AVR compiler. It's a small game on a microprocessor and an LCD screen. move_delay = 200; _delay_ms( move_delay ); It doesn't like that this _delay_ms is a variable, but it needs to be a variable because I can adjust the screen action...

ADC single conversion on STM32

c,serial-port,stm32,adc,usart
I'm studying ADC programming on STM32 F103x and starting with the simplest case - single conversion. The internal temperature sensor (connected to ADC1) value is measured and sending it to COM port by using USART. A target seems clear but when I try to download source code to flash, it...

Read voice from Rasberry Pi values (ADC)

audio,raspberry-pi,adc
Hello I'm using ADC to read voice (from client 1) then I send it to a server from which client 2 can read it. I tried to register values I got in an array and read it through windows media player to be sure that sound is well recorded but...