Jump to content

Johan4668

Members
  • Posts

    89
  • Joined

  • Last visited

Everything posted by Johan4668

  1. i did not connect it yet but with hand it goes perfect... the new nano is in.. so iam going to connect the alt gauge first
  2. Your the best this is also done..
  3. Youmile 5-delige snelheidsmeetsensor IR-infrarood sleuven optische optocoupler-module Foto-onderbrekersensor voor motorsnelheidsdetectie of Arduino met encoders https://amzn.eu/d/bLbJ0FE This one..
  4. Thanks... then iam going to experiment on that.. and to set 0 with a ir sensor.. what do I need to add? And thanks for explaining and testing this is so helpful.. here i just started a discord for the 109 for people who likes to build it also.. and will also get the code on there so they don't have to go this journey I did... https://discord.gg/YGdhFuH2 If you like check it out.. and you can give advice.. Everything is going to be free and downloadeble and gauge by gauge.. I give you the result this weekend. Thanks again.. I have this also.. the mw50 and feul for example
  5. nullThis is more than 360... 410 degrees.. i solved it like this... then it has a 0 point.. but do you also need a end point?
  6. How can you change the direction of the stepper?
  7. and it is not always on the same number... it shifts..
  8. Done a test.. the 0 km - 13 is working the other way how can I reverse that? And I need some code to make the 0 - 1000 meter work.. with 0 position.. Then I need to calibrating the whole thing... I upload what it is doing now..
  9. Yes to arduino nano.... not an original it is a clone.. I bought a new one to test.. will come in tomorrow.. keep you posted..
  10. now... this is the nano.. and not working null and this the Uno.. and working null on the same sketch
  11. Is that good? I can do some test tomorrow. What can I do to test this encoder? Or what can I buy if this does not work... I have not an other on the shelf... Found this.. // two steps per detent: DcsBios::RotaryEncoder<2> ilsMhz("ILS_MHZ", "DEC", "INC", PIN_A, PIN_B); Then I'll exchange the 2 for 1 because it is a 1 step..
  12. i have this one.. https://uk.rs-online.com/web/p/mechanical-rotary-encoders/6234221
  13. got the mega in.. iam going to test eveything on this.. the nano i dont trust
  14. solved.. needed the libery. /* Tell DCS-BIOS to use a serial connection and use interrupt-driven communication. The main program will be interrupted to prioritize processing incoming data. This should work on any Arduino that has an ATMega328 controller (Uno, Pro Mini, many others). */ #define DCSBIOS_IRQ_SERIAL #include "DcsBios.h" // Altimeter Pressure Set DcsBios::RotaryEncoder altPressSet("ALT_PRESS_SET", "-3200", "+3200", 4, 5); /* paste code snippets from the reference documentation here */ void setup() { DcsBios::setup(); } void loop() { DcsBios::loop(); } i was trying the knob.. i see data in dcs bios.. but it is not moving.. null
  15. C:\Users\johan\AppData\Local\Temp\.arduinoIDE-unsaved2023213-24360-9wvz4b.k76n\sketch_mar13a\sketch_mar13a.ino:17:10: fatal error: AccelStepper.h: No such file or directory #include <AccelStepper.h> ^~~~~~~~~~~~~~~~ compilation terminated. exit status 1 Compilation error: AccelStepper.h: No such file or directory nullhis is how i wire it Ill post the code in a bit... I got this error?
  16. Until i have the Mega ill try it directly. so the code must be like this that i don't have the RS485 fuction. --------------------------------- // #define RS485 // default is USB mode, uncomment for using at the RS485 bus #ifndef RS485 #define DCSBIOS_IRQ_SERIAL // use for Arduino UNO, NANO and MEGA // #define DCSBIOS_DEFAULT_SERIAL // use for other boards like ESP32 or Raspberry Pi Pico #endif //#ifdef RS485 // #define DCSBIOS_RS485_SLAVE 1 // change according your slave number (1 to 128) // #define TXENABLE_PIN 2 //#endif -------------------------------------
  17. Ok.. I'll put the stepper code underneath the line..
  18. Ordered one.. can you help me on the code? That finds the zero point at startup? And the sketch in here I can use fot the non 360 dial? Is that correct? I leave the rs485 until the mega will arrive.. Thanks I. Advance.
  19. Will an uno work also?
  20. nullhis is how i wire it Ill post the code in a bit...
  21. Hi Les I see that I can directly connect the x27.. can you help me to cet it to work and with a 0 ir? Thanks.. and can you provide the code.. I read your post also on arduino.. I like to use rs485.. I also have that.. can I operate all on 5v?
  22. done that... do you have some code?
  23. https://youtu.be/JHIMUe7TsY0Who can help me on a code to get this to work?
  24. Who can help me on a code to get this to work?
×
×
  • Create New...