Hi I using 7 segment 4 digit with load cell and hx711 how i can make it (weight values) show on 7 segment without 's keep blinking and i can not read the values on display my code right now is □□ #include "HX711.h" #include "SevSeg.h" #define calibration_factor -1115000 #define DOUT PA0 #define CLK PA12 int sensorValues = 0 SevSeg sevseg HX711 scale(DOUT, CLK) void setup() If you do not see a black mark anywhere than you switched up wires that can't get overpowered so check the schematic and plug then in correctly and change the code back from 8888 to 3.141. Sadly this IS NOT fixable and you would want to buy another display.ĥ. If you see any black near one of the pins you did overpower one of the digit places. You can check this by looking at the back of the display. If so one of the wires might have not had a resistor when it should have had one meaning that one of the digits had burned out. Locate the line in void loop where it says to display (3.141, 3) and change 3.141 to 8888 and see if one of the 8 are missingĤ. Check the schematic again, because you most likely plugged it in wrongģ. Check your connections and make sure everything IS plugged in and not hanging outĢ. Sadly, this problem can either be fixable or not. Change "COMMON CATHODE" to "COMMON ANODE" Locate in the code " sevseg.begin(COMMON_CATHODE, numDigits, digitPins, segmentPins) "Ģ. Sadly only one of the two is fixable.ĭo not worry this is the problem that is fixable, just follow these stepsġ. Here i have listed two possible things that could have happend to your display that could have messed it up. You just have to quit the application and open it again. If your arduino application was opened and running while you where putting the library into the libraries folder, the arduino won't recognize the library. Finally drag and drop the installed library into the just opened libraries folder. Then, locate the libraries folder, and open it. Then, locate the "arduino" folder, and open it. First go into finder and locate the "documents" folder, and open it. If you now how to do this then skip to the next step, otherwise keep on reading. Now you have to load the previously installed library into your libraries folder. Click that button and watch it appear in your downloads. When you get onto the website look at the right side of the window and look down until you see, "Download Zip". If you have never been on github listen carefully, if you have read the next paragraph. Since i allready have used an Cathode RGB when lights up when i set it to "HIGH" i think i will go for cathode.The library linked below is from the arduino website for easily controlling a display. On a strip barely more expensive than RGB LEDs, but you can have a lot more fun with them. Takes a little to get used to in the beginningĪlso do check out the WS2812B LEDs. Do mind that if connected directly to the pins a CA LED is on when the pin is set LOW. CA or CC doesn't matter much unless you expect to use many in that case CA. LED display drivers also usually require common cathode displays Most RGB LED strips are common cathode for this very reason. Add to that the difficulty in switching them off for higher voltage supplies makes an nMOS the preferred device.įor a single LED that's not a concern at all, of course. What is of more concern, for pMOS at least, is that they are more expensive and always have higher on resistance (typically 2-3 times the equivalent nMOS). Both types are easy enough to get on, I never had the feeling it's hard to find a p-MOS or PNP. Not so much harder that I for one find it an issue. PNP transistors and P-channel MOSFETs are more difficult to find, they are used with 'Common Cathode' LEDs.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |