When people accused of crimes can show community support, that usually works to their benefit. The support must of course be of the right kind and the right tone.
Writing directly to a judge without having the letters screened by your attorney is a big mistake. In fact some courts will discount anything not originally shared with counsel for both sides.
If you are seeking to quash a prosecution, the letters would probably best be sent to the prosecutor however again the letters should be vetted with your attorney first.
The lesson here is gathering support is a great idea, but you have to be sure to do so within the bounds of your defense theory.
This answer does not, nor is it intended to, create an attorney-client relationship or constitute attorney advertising. Rather, it is offered solely for information purposes. Since the facts of each case are different, it is critical to consult with qualified counsel with whom information can be shared and assessed under an attorney-client privilege, so that competent advice can be obtained on which you can make informed decisions.
First, you should generally be cautious of answers from out of state attorneys.
Second, you have posted before; and you have an attorney. So, you really should be addressing these issues with him or her. S/he is in the best position to answer as s/he knows all the facts related to your case.
The support of family and friends is critical to sentencing. Not so critical in convincing judges or prosecutors to help you. With the prosecutor, your actions are more important (i.e., upfront treatment or community service). With the judge, your family and friends should not contact the judge period, not until and unless you are seeking character references for sentencing. And even then, writings by friends and family should be carefully screened before they are submitted. Sometimes, well-meaning friends and family say the wrong things......
Good luck, and Happy Holidays!