Hello, I am testing the AS7262 sensor, I have seen that it can be connected to the pc and display the data obtained in a pc software. I connect it to an FTDI usb converter as follows: 3V3, GND, RX from AS7262 to TX from converter and TX from AS7262 to RX from converter. As it says on the web, I have removed the solder on JP1 and put solder on JP2. I cannot connect the AS7262 to the pc software, I get the following error message: Error connecting to the FTDI device. An error occurred during connecting to the FTDI device. FT_DEVICE_NOT_FOUND.
The sensor works fine since I have been able to get it to work on Arduino. I want to connect it to the pc software to get more out of it and learn more about how the sensor works and the programming. Specifically, I want to use the sensor to convert the data to CIELAB color format, but that is not the most important thing now, now what matters most is getting it to connect to the PC software.
I bought that the pc recognizes the FTDI converter. I have even tried version 2.10 because I have read in several places that versions later than this one, in some FTDI converter devices they get blocked, but it is not my case I have verified that it is recognized by Windows and I have also installed a previous driver to make sure. Is it possible that the sensor is wrongly connected?
I have connected the power to 3V3, then RX to TX and RX to TX. I have soldered the JP2 pin and unsoldered the JP1 pin. I don’t know what else to do, what else to check. I need help, may I need to connect something else ??
I have this FTDI usb converter, I don’t know if it will be compatible with the AS7262
Any **functioning** FTDI adapter should work, if you have set the voltage output for 3.3V. But the web page you linked says it is not available. What adapter do you actually have?
Hello, thank you very much for your help. Really without your help it would be impossible for me to know what to do, there is very little information about this on the web.
I have tried the Ladyada tutorial and I have verified that the test works well.
The AS7262 came with the soldered jp1 and the unsoldered jp2. Following the tutorial to connect it to the pc software, I desoldened the jp1 and I soldered the jp2. You can see it in the photos. I put some photos where you can see how I have it mounted and the error that the pc software produces.
I have tried with the most current driver version, also with 2.10 and 2.8. In all three versions, it tells me in events that more installation is required.
I’m not sure I understand yet. If you DO NOT connect the sensor to the FTDI adapter, does your computer recognize the adapter? If so, does the loopback test work when you load a terminal program and can you see what you are typing?
If the problem occurs AFTER you connect the sensor to the FTDI adapter, something is wrong with the sensor. Check all your solder joints for short circuits and bad connections. Make sure that there is no connection on JP1, and resolder the connection on JP2 (reduce the size of the big blob).
The pc recognizes the usb converter and shows it in COM6, but in the device manager it tells me in the COM6 events tab that more installation is required.
I have soldered again, I have verified that everything makes good contact, I have changed between different usb ports of the pc. I have tried different versions of the FTDI driver, I have looked for other drivers.
I do not know if there is any software that tells me if the usb converter is defective or what driver it needs.
I really like the pc application, but I cannot connect the sensor to the pc.
I used other sensors such as TCS3200, TCS34725, ISL29125. These are easy to use but are not accurate in measurement. I still have another one to try: BH1749NUC. This I think is not as accurate as the AS7262.
At the moment I am going to put aside the communication of the sensor with the pc until I buy another converter that I hope that if it works for me, maybe try the one I have on another pc.
Now I will focus on programming, I want to make a program to convert the data obtained from the sensor to XYZ format and then to CIELAB format.
In this I am very lost, the examples I have seen are very basic and I do not know how I can do it, I will continue looking for information and doing tests.
I need information from somewhere that explains how to treat the data obtained by the sensor. I want to be able to determine the color of the objects. I don’t know how to deal with the sensor data, I have only tried RGB sensors before.
It sounds like your serial to USB converter is defective or not properly installed. Try a different serial to USB converter – there are many options. Cheap adapters from eBay, Amazon, etc. very likely use counterfeit or reject chips, so expect problems if you buy from those sources.
I particularly like the Pololu AVR programmer V2.1 https://www.pololu.com/product/3172 as it is a 3-in-one device. It not only acts as a native AVR programmer, it gives you a second port as an “FTDI adapter” and serial to USB converter, and in general works better than anything else on the market. It also allows you to programmatically control the voltage levels so you don’t have to fiddle with solder blobs.
As for determining the “color” of an object, the AS7262 gives you six reflected light intensity measurements in different visible bands. It is certainly possible to transform those values into RGB or HSV colors, but that transformation depends strongly on the ambient lighting, and has to be calibrated for every individual lighting arrangement.
Hello, thank you very much for all the help. I have now ordered the Pololu AVR 2.1. and also another AS7262 because it seems to me that I have damaged jumper JP2. As for transforming the values shown by the sensor to RGB or HSV, in the case of other sensors that I have tried such as the TCS3200, TCS34725 or the isl29125 I managed to transform the values. But they are not exact, which is why I bought the AS7262. I need to measure the color of metals in different colors. Convert to XYZ, then CIELAB. And if you have to do other types of conversions along the way, I’ll see how they are done.
I have seen a multitude of PDFs on the subject.
I need more information on how to make the transformation to XYZ format. From there it seems to me although I am not entirely sure that I can continue with the data conversion.
It is my great doubt how to transform the data obtained from the sensor to XYZ format, or if it is not necessary and there is another way, then I will try other ways.
Measurements taken by the AS7262 are not even remotely “exact”, and no matter what you do, it is absolutely required to calibrate for the ambient lighting conditions.
I have already received the Pololu Usb avr programmer v2.1 and the AS7262.
I have tested the pololu, it is well recognized by Windows.
When I test the pololu with the AS726x Spectral Sensing iSPI v3.4.2 I get a message saying that it cannot find a device. Neither does the AS7262 power LED light up. With the other USB converter if the blue power led lit for 1 second and I got another type of message that I have already posted on the forum.
I can’t think of what else to do …
I have seen that there is a version 3.3. I’ve looked for it but can’t find it, just in case that version would work for me, but I can’t find it.
How does the software detect which port to connect to?
Is it enough to select AS7262?
If you can help me solve the problem, since I am very new to these things.
I have checked the welds on the jumpers.
As the tutorial says to connect it by serial, desolder JP1 and solder JP2, I have checked it in a microscope that it is well done.
I hope you can help me, to be able to take advantage of this magnificent program.
From the photo, one of the six connections to the adapter seems to be missing. Why?
If no LED lights up on the sensor, it is not getting power. Solve that problem first, then test the sensor data connection using a serial com port terminal program.
You could ask AMS what that message means. Perhaps the software expects a genuine FTDI adapter to be connected (there are lots of fakes).
- We recommend using our [[Beefy 3 - FTDI Basic Breakout](https://www.sparkfun.com/products/13746) with this board, it's been tested and shown to work. We have not tested the FTDI you're using and can't support our board in conjunction with your adapter.
- If for some reason the board you're using has supplied 5 volt power or I/O to the board, it's most likely fried the AS7262 and possibly the flash memory chip and you will need to replace the board. :cry:
I have found another version of the ams software: ams Spectral Dashboard 4.2.1 and it works for me. Now I’m calm, at least I know that the Pololu converter and the AS7262 work for me. This version of the software is simpler than the first one I tested and works with commands, it does not convert to XYZ or CIELAB format, nor does it display any graphics. But it is already something important for me that you function this software
It asks me to select a port, in my case 15 and connects right away.
The other software Spectral Sensing iSPI v3.4.2, just ask me to select the AS726X
This software may not work connecting via Tx and Rx? Is it possible that I need to connect in another way?
Sadly we can only support this product when you’re using it with our libraries and according to our hookup guide. If you’re using hardware and software than we specify you’re unfortunately on your own.
For what it’s worth, I was able to track down the software you’re using and I get the same error as you do, I suspect the evaluation kit the software comes with uses a customized FTDI interface that has been configured especially for the software.
You might try AMS support, the website for that is below.