Ritalin is a stimulant similar to caffeine. They all affect the neurotransmitters dopamine and norepinephrine.

https://recoverypartnernetwork.com/drug/stimulants/methylphenidate-addiction