ADC sampling 4 channels at 50 Hz problem

Started by npoz0 in BasicX12 years ago 11 replies

Hello, I am using the Bx-24 for a datalogging application. I modified the data logging software I found from basicx's site, and I'm having...

Hello, I am using the Bx-24 for a datalogging application. I modified the data logging software I found from basicx's site, and I'm having problems sampling fast enough. I was wondering if anyone knew a faster way to sample to increase my sampling time? I took my sampling concept and applied it to a simple program to output everytime it sampled. I tested it accur


TLC2543 example questions

Started by eccentric_mofo in BasicX16 years ago 1 reply

Hello, I've been studying the code on peter anderson's website regarding the TI TLC2543 ADC, and have a few questions for those of ...

Hello, I've been studying the code on peter anderson's website regarding the TI TLC2543 ADC, and have a few questions for those of you who are experienced with playing around with it! Here is the code verbatim from his website: Program TLC2543_1.Bas ' ' Il


Re: code timing (was ADC sampling)

Started by npoz0 in BasicX12 years ago

Tom, Thanks again for your quick reply. The timestamp I would like to keep track of would not be to prove the sampling rate, it would be for...

Tom, Thanks again for your quick reply. The timestamp I would like to keep track of would not be to prove the sampling rate, it would be for data processing later on. I am writting a program in Labview that will import the data from the SD card and plot it, and do some scaling that will be compared with a normalized data table. The entire project is taking a potentiometer and an accelero


In-line Assembly code with Basicx

Started by Richard Albertson in BasicX14 years ago

Anyone have any slick tricks for adding inline assembly code to the BasicX? I'm looking for ADC or I/O port sample rates higher than...

Anyone have any slick tricks for adding inline assembly code to the BasicX? I'm looking for ADC or I/O port sample rates higher than 8Khz which I can't seem to get from Basic.


BX24 hangs on a simple(?) sub call

Started by promixe2 in BasicX9 years ago 2 replies

Hello All, I'm new to hardware related programming but have some basic experience with programming in general. I am writing an interface to...

Hello All, I'm new to hardware related programming but have some basic experience with programming in general. I am writing an interface to control an Audio ADC chip (TI's PCM4222) and ran into a problem I can't debug (I've tried millions of things, changing code around for the entire day). Here is the functional description of what it's supposed to do (code posted below): After initializ...


Multiple buttons how to?

Started by dvc80p in BasicX14 years ago 1 reply

I have eight normally open momentary buttons attatched to each of the 8 ADC pins. I am useing them as GPI inputs to the BX-24. I am...

I have eight normally open momentary buttons attatched to each of the 8 ADC pins. I am useing them as GPI inputs to the BX-24. I am trying to write code so that when pin 20 goes high, pin 5 gives a high state for 50 milli-seconds (like a one shot) I can make this work with the &q


adc to site player

Started by wimn.rm in BasicX13 years ago

I'm reading a pressure transducer and want to send the data to the siteplayer. Can't get it to work. It hangs. Who can help please? ...

I'm reading a pressure transducer and want to send the data to the siteplayer. Can't get it to work. It hangs. Who can help please? Extraction from the program. (compiles ok) Call GetADC (PressPin,PressRaw) hPascal = (pressRaw * 10000.0)/8.0 shPascal = cStr(hPascal) dataByte = &H83 'Funtion WRITE and 4 bytes call


BX24 Temperature Input

Started by natemz in BasicX15 years ago 12 replies

I have a BX24 and want to measure temperature using the builtin adc. Should I use a thermocouple or a thermistor? How would I wire...

I have a BX24 and want to measure temperature using the builtin adc. Should I use a thermocouple or a thermistor? How would I wire it to the BX24? Where could I get the temp component(thermistor/thermocouple)? Thanks!


Re: Time measuring

Started by limit20012004 in BasicX14 years ago

Dear All, I have some question about using BasicX-01 or BasicX-24 to measure the time of pulses (0-1500Hz) and caculate the...

Dear All, I have some question about using BasicX-01 or BasicX-24 to measure the time of pulses (0-1500Hz) and caculate the pulse frequency in a minute at real time. In this case,anything pulse must not be lost! At the same time there are two task of getting ADC value


Re: code timing (was ADC sampling)

Started by npoz0 in BasicX12 years ago

Tom, Thanks so much for your help. I've got everything sampling and working, Since I'm sampling generally a 5Hz signal I think the small drop...

Tom, Thanks so much for your help. I've got everything sampling and working, Since I'm sampling generally a 5Hz signal I think the small drop in sample rate while sending the new write command every so many seconds should be alright since I'm sampling 4-5x what the original signal will be. Though another small thing has been added to log. The time. I decided to include the ticks as a th


Reading Analog Voltages on BX-24 pin 13 thru pin 20

Started by ka0wuc in BasicX14 years ago 6 replies

I'm having a simliar failure with trying to read analog voltages on a BX-24 using the ADC pins channels 0 thru 7. The code and...

I'm having a simliar failure with trying to read analog voltages on a BX-24 using the ADC pins channels 0 thru 7. The code and symptoms are near identical to message #15412,15413,& 15415 I didn't see any resolutionwith that thread and would like to know what steps in trouble


ADC broken?

Started by Jack Wu in BasicX15 years ago 4 replies

Hi i was playing with the GetADC command, i used a loop to gather the voltage off of a pin, i think it is broken because the...

Hi i was playing with the GetADC command, i used a loop to gather the voltage off of a pin, i think it is broken because the readings are always wrong. here is the code: -------- Do Voltage = GetADC(PinNumber) Debug.Print CStr(Voltage) Delay(0.50) Loop


Re: BX24 ASCII

Started by frog28043 in BasicX15 years ago 2 replies

Newbee I have a dumb question is it possible to convert at the processor to asc before I send it to a visual basic interface I...

Newbee I have a dumb question is it possible to convert at the processor to asc before I send it to a visual basic interface I would like to use get adc then convert to asc then send out on com1 to vb interface I am having a problem getting the check bit 255 and then look at my next two bits of data


Re: code timing (was ADC sampling)

Started by Tom Becker in BasicX12 years ago

> ... the size of the ticks gets very large... I suggested that you tag sample pairs with a timestamp so that you could prove, or analyze,...

> ... the size of the ticks gets very large... I suggested that you tag sample pairs with a timestamp so that you could prove, or analyze, the sampling rate later. Since you want to sample at rates on the order of 20-50Hz, which corresponds to periods of 20-50mS, the timestamp needn't be larger than, perhaps, 10 times the largest expected period, or 500mS. You don't care what hour


Acellerometer specs

Started by Vic Fraenckel in BasicX13 years ago 2 replies

See http://www.kionix.com/ The KXM52 acellerometer spec sheet states that the sensitivity of the unit is 660mV/g. Could...

See http://www.kionix.com/ The KXM52 acellerometer spec sheet states that the sensitivity of the unit is 660mV/g. Could somone explain to me exactly what this means? What sort of circuitry must I consider to hook this critter to a ADC? An


BasicX 12V Battery Monitor

Started by Mike Perks in BasicX13 years ago 3 replies

I want to use an ADC port to monitor the voltage from a 10x1.2V battery to check every so often for a low battery voltage (probably software...

I want to use an ADC port to monitor the voltage from a 10x1.2V battery to check every so often for a low battery voltage (probably software hardcoded). My first thought is a simple voltage divider (say 100K/33K) that can deal with the case of a fully charged battery of ~14V. Is this sufficient or should I add a zener for protection or any other circui


BasicX-24p vs. OOPic

Started by Mario Loeffel in BasicX13 years ago 5 replies

I have just recently discovered the BasicX-24p and I'm wondering if anyone knows how it compares to an OOPic II+ performance wise. I...

I have just recently discovered the BasicX-24p and I'm wondering if anyone knows how it compares to an OOPic II+ performance wise. I currently have a system implemented on the OOPic that executes the following tasks: - Communication over I2C with a motor controller (1 x 16 bit write & 1 x 24 bit read per loop) - 4 channel, 10 bit ADC


BX-24 Input Impedance for ADC conversion of small 50 Hz Voltage

Started by gouardopatrick in BasicX9 years ago 13 replies

Hello everybody, To measure the current in my 3 phases house electricity system and=20 in the neutral, I am using 4 Honeywell Current...

Hello everybody, To measure the current in my 3 phases house electricity system and=20 in the neutral, I am using 4 Honeywell Current Sensors CSLA2CD=20 powered with 5V.=20=20 5 V is on the low end of the specifications!=20 I send the outputs of the current sensors to the Input pin (Pin 13=20 to 16) of the BX-24.=20 The Current sensor give a DC voltage of 5V / 2 =3D 2.5 V when I have=...


Queues of a different type

Started by psyclopedia in BasicX12 years ago 3 replies

Queues are our friend. They're great for moving data around efficiently. Do they only work for byte types? I can compile an application...

Queues are our friend. They're great for moving data around efficiently. Do they only work for byte types? I can compile an application using integers in a queue array and I get no errors. Is this just an overly permissive compiler? I'm struggling to write a Kalman filter for ADC values (integers), and the FIFO queue would work perfectly to keep a running average. Feed the values in on


"Capture to file" problem

Started by Yuli in BasicX8 years ago 4 replies

Dear all, I'm trying to sample the reading of 4 ADCs (pin 13-16) every 5 sec and log them into my PC. My program is edited from the...

Dear all, I'm trying to sample the reading of 4 ADCs (pin 13-16) every 5 sec and log them into my PC. My program is edited from the standard ADCexample.bas. It does nothing but reads the 4 ADC ports. The 4 readings can be correctly displayed in the watch window. Then I went to the downloader "file\capture to file..." and created a txt file. The problem is: the txt file doesn't log any data,...