Jump to content

Symbolls

Member
  • Posts

    84
  • Joined

  • Last visited

Reputation Activity

  1. Like
    Symbolls reacted to shadow_ray in Code dose not want to loop in a loop   
    This is how your code looks like:
    void loop(){ //no code here if (IrReceiver.decode()) { //bunch of code here } //no code here } Let's see what bool IRrecv::decode() does:
    The main decode function, attempts to decode the recently receive IR signal.
    @return false if no IR receiver data available, true if data available. Results of decoding are stored in IrReceiver.decodedIRData.
     
    You should brake it up into 2 parts:
    data_type data; void loop(){ if (IrReceiver.decode()) { //process the recieved data here data = process_data(IrReceiver.decodedIRData); } //do usual stuff here do_stuff(); }  
  2. Informative
    Symbolls reacted to Kilrah in Code dose not want to loop in a loop   
    That's not how arduino works, it hides a lot of platform code from you including the real main loop, and calls your loop() function repeatedly. So that's correct, and if you do your own while(true) you'll prevent all the background stuff from working.
     
     
  3. Like
    Symbolls reacted to C2dan88 in Making a value biger after i press the controlor button   
    This error
    Says you are calling on_x_press() function without passing any arguments to it. 
    Your function definition defines 1 argument angle_count
    def on_x_press(self, angle_count): If you dont need to pass an argument to the function then remove the argument
    def on_x_press(self):  
    angle_count is a property to the MyController class. You need to use self.angle_count in your functions when you need to use it.
    To increment its value by 1 you can  += operator
    def on_x_press(self): print("1") self.angle_count += 1 // increment angle_count by 1 To deincrement the value you can use -= operator
    def on_circle_press(self): self.angle_count -= 1  
  4. Like
    Symbolls reacted to rikitikitavi in Help debugging code in python i am a begener and i have tryd a free course and i am to stupit to copy and paste so pls help   
    It is mostly indentation errors, as far as I can see.
    Basically, wrong amount of [tab]s on some lines, for example:
     
    Return statement is outside of the function -> just [tab] it once, or so 🙂
     
    Variables have more indent then they should (delete one [tab]).
     
    So something broke when copied or it was wrong in the first place.
     
     
    How to approach such things in general:
    - run it
    - carefully read what't wrong and where
    - if it doesn't make sense - retype, simplify, refactor
    - - better: try run it separately to check what's working and what's not (with dummy variables)
    - - - best: google how to do unit testing
     
    Hope it helps;)
  5. Like
    Symbolls reacted to shadow_ray in Were to start pls help   
    want to do it from scratch? all you need is a team of researchers
     
    But this tech already exists  https://github.com/CorentinJ/Real-Time-Voice-Cloning
    or as a service: https://www.resemble.ai/
    etc.
     
  6. Like
    Symbolls reacted to mariushm in Small pcie usb hub in BIG pcie slot (thats wat she sed lol)   
    Before you do that, you may want to look at how many usb 2.0 and usb 3.0 headers are on the motherboard sitting unused. 
    You could buy brackets with 2 or 4 usb connectors and attach those brackets to the back of your case and connect the cables to the existing usb headers. For some things like mouse, keyboard, even webcams etc you don't need more than usb 2.0 
     
    Example usb 2.0 bracket with 4 ports : https://www.amazon.com/StarTech-com-Port-Female-Plate-Adapter/dp/B00015Y0FK/
     
    Just search "usb bracket" and you'll find plenty : https://www.amazon.com/s?k=usb+bracket&ref=nb_sb_noss
    Cheaper on eBay and other places.
  7. Like
    Symbolls reacted to Yatharth Shah in Python computer vision help i just started out   
    How did you install these modules? Did you pip install it?
  8. Like
    Symbolls reacted to tikker in Python computer vision help i just started out   
    You may be using the wrong version of OpenCV. Check which version of the module your tutorial requires and install that one. Also don't install both. You should install only opencv-contrib-python, as that contains opencv-python already.
    For example where the code says "tracker = cv2.TrackerMOSSE_create()", you should now say "tracker = cv2.legacy.TrackerMOSSE_create()".
     
    However, judging by "legacy" this could mean this functionality is outdated and will be removed. So either update the code to use the proper convention for the current version, or as I said above check which version the tutorial assumes and use that.
  9. Like
    Symbolls reacted to riklaunim in Python computer vision help i just started out   
    The code example is written for some older version of the opencv package so either try using one of the older versions or update the code example for current version. With luck it will be just changing imports.
  10. Like
    Symbolls reacted to Hackentosher in Arduino display and rodory encoder   
    To make a second column, I believe you just need to relocate your cursor and print the second variable. To get the switch to control the different functions, I would do something like
    int select = 0; int max = x; //maximum number of states you want in the program if(digitalRead(SW)==LOW){//that encoder has a pullup so when it is pressed, the signal becomes low from a high state select++ if(select>max){ select = 0; } } switch(select){ case 1://state 1 break; case 2://state 2 break; case n: //nth state break; } I've done similar projects in the past making a very very basic UI with little arduino screens. Switch cases are generally the way to go, with a button to increment a counter to select a function/menu.
  11. Like
    Symbolls reacted to ColinLTT in Arduino display and rodory encoder   
    Hey, cool little project you have here! 
     
    So let me get this straight: You want to use the rotary encoder you have there to drive a motor a certain number of steps (Assuming stepper motor) 
     
    Before you deal with adding the LCD I would advise you to get the system working as you intend, THEN add the LCD side of things. I glanced at your code and it looks like you have a bit of a way to go. I'd suggest taking a look at this guide and snagging some of the code from it to do what you want: https://www.arduino.cc/en/Tutorial/MotorKnob#:~:text=In this example%2C a potentiometer,either unipolar or bipolar motors.
  12. Like
    Symbolls got a reaction from RandleMcmurphy in Arduino exit status 1 Err   
    IT WORKS
    I DONT THINK I CAN THANK YOU ENOUGH FOR SAVING MY BUT

  13. Like
    Symbolls reacted to Radium_Angel in Pls help me i cant play overwatch forums dont help me FU GEFF   
    Looks like the game is crashing.
    Have you looked in the Event Viewer (in Windows 10 it's under Control Panel, then Administrative Tools) and then look for red X or possibly a yellow Triangle, see what you fin there that may be of some use
  14. Agree
    Symbolls reacted to C2dan88 in How ca i disable the top volume dial In Windows 10   
    Yea, Win10 does not have any options for that. You can use HideVolumeOSD to get ride of it
    http://wordpress.venturi.de/?p=1#more-1
  15. Informative
    Symbolls reacted to Mira Yurizaki in How can i reset windows without reinstaling the operating sistem on my laptop   
    You have to actually delete the D partition. If you don't have any data on there that you care about, you can delete it and resize C to whatever you want.
     
    It's baked in, you don't have to do anything.
  16. Like
    Symbolls reacted to Safeer Hafi in How to power up your leptop without opening it   
    Step 1
    The first step to running your laptop with the lid closed is to Click on the "Start" button. For those of you new to Windows 7 this is the circular microsoft button on the lower left side of your screen.
     
    Step 2
    Then go ahead and select "Control Panel" in the window that appears to the side.
    Step 3
    Go to the section titled "Hardware and Sound."  It is located about the middle left section of the control panel window. Click directly on the words "Hardware and Sound"
    Step 4
    In the "Hardware and Sound" window, look for the "Power Options" section. This is located about halfway down the window.
    In the power options section, click on "Change What the Power Buttons Do"
    Step 5
    In the window that opens, look for the section titled "When I Close the Lid"
    Next to this title you'll see two drop down boxes that by default will be set to "Sleep'.
    Change the "On Battery" and / or "Plugged In" drop down boxes to "Do Nothing." Depending on which power source you want to use while using external monitor, keyboard and mouse.
     
    Do Nothing on Battery
  17. Like
    Symbolls reacted to savvijcabbij in How to power up your leptop without opening it   
    I guess you are in Windows. Go to Control Panel, Hardware and Sound, Power Options and then Choose what closing the lid does. Select "When I close the lid" under "Plugged in" and change "sleep" to "do nothing". This way you can use the external monitor with the laptop lid closed. Hope this helps
  18. Like
    Symbolls reacted to Genesis_Uchiha in GPU Not Detected   
    I have Ubuntu installed on my 2nd hard drive and I can support steam and windows applications via Wine so I don't see why Fortnite and Overwatch wouldn't work but as I don't play either of those games, I'm no expert.
  19. Like
    Symbolls reacted to porina in Wats is beter a gtx 1080TI or a Titan xp   
    The 1080Ti is basically a cut down Titan Xp. If you run them at the same clock, the Titan Xp will be faster, but that's the "if". Xp only comes with blower cooler (even if nice looking Star Wars edition) but the after market coolers on 1080Ti can result in it reaching higher clocks, more than making up for it. If you water cool an Xp it should give best performance overall.
  20. Funny
    Symbolls got a reaction from BWLServers in Hi can you plese help me? I want to buy a leptop with a gtx 1050 under 200 USD   
    I want to buy a leptop with a gtx 1050 under 200 USD
  21. Like
    Symbolls reacted to Lurick in Hi can you plese help me? I want to buy a leptop with a gtx 1050 under 200 USD   
    Assuming a GTX 1050 for a laptop is a tad cheaper than the PC counterpart, that's $100 alone. Then you want to throw in RAM, motherboard, processor, keyboard, case, screen, etc. for less than $100?
×