Ducati Cutaway Display

Thanks for the update. Looks great.

...R

Manderioli:
Here is a short video of the display in action:

https://youtu.be/qZfhlsmTYdY

Wow! After 2 years of reading this thread it's great to see the final device in action - AND it looks good! Thanks for posting your video!

Hi,
Very nice project, looks great.

Have you got a Rotary and a V8 to do next?

Nissan GTX Turbo, hmmmmmm..

Tom.. :slight_smile: :slight_smile: :slight_smile:
Karma added..

Congratulations. The project looks great. I don't see the parking meter to collect a few coins to help fund your next project. :slight_smile:

Where is the cutaway located? Will it be in a public space or in your living room for you to admire and wow your guests?

Currently the display is located in my living room. I prototyped small gear but found the ratio to not be exact as planned. Instead of operating around the 2 min mark, the meter only worked for 30seconds. Due to limited time, I have not produced another gear.

After many attempts to create my own clock gear to change the timing of the Duncan meter from 30 minutes to 10 minutes, I scrapped the idea and stuck with the 30min original. Took some time to find a decent Duncan Parking Meter housing, partly because the price is inflated.

I purchased very low gram force limit switches and built two aluminum brackets to hold and position each switch. The Duncan meters have two flags; time expired, violation. I am currently testing the logic to ensure the display will only turn on and stay on when a coin is installed.

The limit switches are placed strategically to allow the entire meter to slip into the housing without interference. The limit switches are activated from a NC state to a NO state when the respective flag is at the lowest position. The switches will be fed with 3.3V, Ground, A2, & A3 terminals from the board. EXPIRED = A2 input VIOLATION = A3 input.

Here is some of the mechanical logic I am dealing with:
Static State = VIOLATION flag is lowered EXPIRE flag is raised

  1. Turning the handle without a coin will cause the EXPIRED flag to lower and raise the VIOLATION flag.
  2. Turning the handle with a coin will cause same as #1 until the ratchet mechanism (which the coin activated) releases the coin. Then the EXPIRED flag will remain low until time has run out. The VIOLATION flag can still be raised when the handle is turned (with or without a coin).
  3. If the handle is released from full turn position, it will bounce the flags (causing the switch to flip).

Bellow is the basic program I am testing using an LED as a substitute for the rest of the program (to simulate the display on and off). I used the internal resistor to increase the range of values being read. The switches in the NC (flag raised) read about 1000 units while in the NO (flag lowered) read about 750 units. I don't need the values to be exact and looking for a simple way to determine two different states on the analog side.

After not coding for 3 years, I am rusty. If there is a shorter, simpler way to write the logic, please teach me.

I need help in the following areas:
-creating a latch loop (while statement possibly?) [if the meter has been started, and more coins are deposited]
-buffer to prevent the display turning on if the flags bounce

If more photos and explanation of the meter is need, let me know.

const int EXPIRED = A2;
const int VIOLATION = A3;
void setup() {
  Serial.begin(9600);         
  pinMode(A2, INPUT_PULLUP);
  pinMode(A3, INPUT_PULLUP);
  pinMode(2, OUTPUT);
}
void loop() {
 while ( analogRead(EXPIRED) < 900 && analogRead(VIOLATION) < 900){
    digitalWrite(2, HIGH);
 }
if (analogRead(EXPIRED) > 900 ){
    digitalWrite(2, LOW);
}
}

Hi,
Parking meter looks like another good project.
When did you start it?

Tom.. :slight_smile:

I started the current situation two days ago after acquiring the housing.

Hi,
Ops image;

Tom.. :slight_smile:

Here is a link to the final completion of the project with everything working!

Nice.

Always a fan of Ducati. I ride a Panigale

This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.