Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.
i compiled your code, it gave no errors. I tried to run it without a webcam, i received the same error as you did.
There are two things you can do to solve this problem
1. Get a new webcam and try the code
2. Try modifying the number in this part of the code capture = cvCaptureFromCAM(0);
try...
I was able to search for a code that can transmit what i want, but the problem is when i tested it, it only transmits 1 decimal place, i would like it to transmit two decimal places, how can i do it?
This is my
ad_value = Adc_Read(0);
Vin = adc_value*(5.00000/1023.00000)...
sorry about that, my ADC value will be integer, and i want it to be converted to a string, otherwise, my receiving node will display a character corresponding to the hex equivalent of the ADC integer. i see that the code you gave me is for UART_write, but i am currently using USART_write(), i am...
i'm having trouble converting the ADC value to character string, how do i convert it? i used InttoStr(myvalue ,stringvalue ) still i get the wrong data
how do i send my data from ADC to Usart? This is my code, and i am not able to send the data that i need. I am not that good in programming microcontrollers. i am currently using PIC16F877A and MikroC
void main(){
ADCON1 = 0x00; // 8-bit converter, 0000 Ports E and A are analog inputs...
Thank you all for your help, the problem is now solved :) the issue is not about the hardware and the software, it's in my OS, we reformatted our PC an installed again my devices :)
i have done all the corrections in the schematic, still it goes wrong :( . can the issue of this one is that the Driver is installed incorrectly? or i am using Ubuntu OS?
I have configured the Xbee Series 2s correctly. Also, all the tests were done. My max232 is supplied with 5 volts, my xbee is supplied with 3.3 volts. and i noticed that the capacitor(in red circle) is the one Sir Alex was talking about
i followed this schematic from sodoityourself.com. my power source for my schematic is a 9 volt 10W AC to DC adapter, i used 5 volt regulator for MAX232 power supply and 3.3v regulator for Xbee power supply
---------- Post added at 21:29 ---------- Previous post was at 21:26 ----------
by the...
i got this schematic from the internet, i'll try your suggestion, thanks! :)
---------- Post added at 21:14 ---------- Previous post was at 21:10 ----------
I am currently using Xbee Series 2. My code above is supposed to be transmitting '1'.
for the testing:
I ran the code above in a...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.