# How to build FSM when there are too many states?

Status
Not open for further replies.

#### muratti

##### Newbie level 1
Hi,

I am working on a vending machine project and trying to build a state machine, as I saw from other examples. The machine that I am trying to build holds up to 100 dollars. And it takes nickel, dime and quarter. So, I should define about 2000 states one by one. How can I build an FSM in an easier way?

Thanks.